nixpkgs/pkgs/tools/misc/abduco/default.nix
2015-03-02 16:24:10 +01:00

28 lines
808 B
Nix

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