Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 59 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 python3, 6 pkg-config, 7 xmlto, 8 docbook2x, 9 docbook_xsl, 10 docbook_xml_dtd_412, 11}: 12 13stdenv.mkDerivation { 14 pname = "irker"; 15 version = "2017-02-12"; 16 17 src = fetchFromGitLab { 18 owner = "esr"; 19 repo = "irker"; 20 rev = "dc0f65a7846a3922338e72d8c6140053fe914b54"; 21 sha256 = "1hslwqa0gqsnl3l6hd5hxpn0wlachxd51infifhlwhyhd6iwgx8p"; 22 }; 23 24 nativeBuildInputs = [ 25 pkg-config 26 xmlto 27 docbook2x 28 docbook_xsl 29 docbook_xml_dtd_412 30 ]; 31 32 buildInputs = [ 33 python3 34 # Needed for proxy support I believe, which I haven't tested. 35 # Probably needs to be propagated and some wrapPython magic 36 # python.pkgs.pysocks 37 ]; 38 39 strictDeps = true; 40 41 postPatch = '' 42 substituteInPlace Makefile \ 43 --replace '-o 0 -g 0' "" 44 ''; 45 46 installFlags = [ 47 "prefix=/" 48 "DESTDIR=$$out" 49 ]; 50 51 meta = with lib; { 52 description = "IRC client that runs as a daemon accepting notification requests"; 53 homepage = "https://gitlab.com/esr/irker"; 54 license = licenses.bsd2; 55 maintainers = [ ]; 56 mainProgram = "irkerd"; 57 platforms = platforms.unix; 58 }; 59}