diff options
author | lassulus <lassulus@lassul.us> | 2021-10-05 23:18:09 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-10-05 23:18:09 +0200 |
commit | 9a855d50a7619192b909e8e3657acb16ecbd5fb4 (patch) | |
tree | 404806cd8d33328661cb03591582a7d7a03bddc3 /krebs/5pkgs/simple/ircaids.nix | |
parent | d8cb0a7522f27ee25846a7391540faf72efaf236 (diff) | |
parent | 1b65517b444daa190a9cb80ea85a85d49bd0d394 (diff) |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/5pkgs/simple/ircaids.nix')
-rw-r--r-- | krebs/5pkgs/simple/ircaids.nix | 32 |
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 + ''; +} |