summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/ircaids.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-10-05 23:18:09 +0200
committerlassulus <lassulus@lassul.us>2021-10-05 23:18:09 +0200
commit9a855d50a7619192b909e8e3657acb16ecbd5fb4 (patch)
tree404806cd8d33328661cb03591582a7d7a03bddc3 /krebs/5pkgs/simple/ircaids.nix
parentd8cb0a7522f27ee25846a7391540faf72efaf236 (diff)
parent1b65517b444daa190a9cb80ea85a85d49bd0d394 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/5pkgs/simple/ircaids.nix')
-rw-r--r--krebs/5pkgs/simple/ircaids.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/ircaids.nix b/krebs/5pkgs/simple/ircaids.nix
new file mode 100644
index 000000000..566346cc9
--- /dev/null
+++ b/krebs/5pkgs/simple/ircaids.nix
@@ -0,0 +1,32 @@
+{ lib, pkgs, stdenv }:
+
+stdenv.mkDerivation rec {
+ pname = "ircaids";
+ version = "1.0.0";
+
+ src = pkgs.fetchgit {
+ url = "https://cgit.krebsco.de/ircaids";
+ rev = "refs/tags/${version}";
+ sha256 = "13z9pc9vq2xq2qpavwmh7fvzvvjkc495ssxsh8cs044qflvj54b2";
+ };
+
+ buildPhase = null;
+
+ installPhase = ''
+ mkdir -p $out/bin
+
+ cp $src/bin/ircsink $out/bin/ircsink
+ sed -i '
+ s;^#! /bin/sh;#! ${pkgs.dash}/bin/dash;
+ s;^#!.*;&\nexport PATH=${lib.makeBinPath [
+ pkgs.coreutils
+ pkgs.gawk
+ pkgs.gnused
+ pkgs.netcat
+ pkgs.nettools
+ pkgs.openssl
+ pkgs.utillinux
+ ]};
+ ' $out/bin/ircsink
+ '';
+}