stockholm/krebs/5pkgs/simple/ircaids/default.nix

33 lines
680 B
Nix
Raw Normal View History

2021-10-05 20:59:35 +00:00
{ lib, pkgs, stdenv }:
stdenv.mkDerivation rec {
pname = "ircaids";
2021-12-28 21:57:10 +00:00
version = "1.1.0";
2021-10-05 20:59:35 +00:00
src = pkgs.fetchgit {
url = "https://cgit.krebsco.de/ircaids";
rev = "refs/tags/${version}";
2021-12-28 21:57:10 +00:00
sha256 = "05zd5dhsif00q8s1g5vzjd6x9n0c806nhfbdcgjdfgfy1j3kygyq";
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
2021-11-21 11:42:28 +00:00
pkgs.unixtools.getopt
2021-10-05 20:59:35 +00:00
]};
' $out/bin/ircsink
'';
}