summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/ircaids
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-10-12 20:07:54 +0200
committerlassulus <lassulus@lassul.us>2021-10-12 20:13:57 +0200
commit780a04e991c46a111c38281fced75f9c38e972f8 (patch)
tree838dbbd7e0cff6ccefefa4e7109b55be909f6cdf /krebs/5pkgs/simple/ircaids
parent55bdc0f653b398d49c5c95d98da797b2b8d5393e (diff)
ircaids: move to dir
Diffstat (limited to 'krebs/5pkgs/simple/ircaids')
-rw-r--r--krebs/5pkgs/simple/ircaids/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/ircaids/default.nix b/krebs/5pkgs/simple/ircaids/default.nix
new file mode 100644
index 000000000..566346cc9
--- /dev/null
+++ b/krebs/5pkgs/simple/ircaids/default.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
+ '';
+}