2021-10-05 20:59:35 +00:00
|
|
|
{ lib, pkgs, stdenv }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ircaids";
|
2021-10-23 13:37:22 +00:00
|
|
|
version = "1.0.1";
|
2021-10-05 20:59:35 +00:00
|
|
|
|
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://cgit.krebsco.de/ircaids";
|
|
|
|
rev = "refs/tags/${version}";
|
2021-10-23 13:37:22 +00:00
|
|
|
sha256 = "0wp01pag58c72rmx8j3i1vlq60na8lc91743832f0h27cik8yqvh";
|
2021-10-05 20:59:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|