1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/tools/misc/abduco/default.nix
2014-11-15 16:21:56 +01:00

29 lines
781 B
Nix

{ stdenv, fetchurl, writeText, conf? null}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "abduco-0.2";
meta = {
homepage = http://brain-dump.org/projects/abduco;
license = licenses.isc;
description = "Allows programs to be run independently from its controlling terminal";
platforms = with platforms; linux;
};
src = fetchurl {
url = "http://www.brain-dump.org/projects/abduco/${name}.tar.gz";
sha256 = "04hrlxb02h2j8vxjnj263slyzxgkf7sncxfm0iwds5097f85mdy8";
};
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
buildInputs = [];
installPhase = ''
make PREFIX=$out install
'';
}