nixpkgs/pkgs/tools/misc/abduco/default.nix

28 lines
808 B
Nix
Raw Normal View History

2014-07-23 14:49:43 +02:00
{ stdenv, fetchurl, writeText, conf? null}:
with stdenv.lib;
stdenv.mkDerivation rec {
2015-03-23 15:55:30 +01:00
name = "abduco-0.4";
2014-07-23 14:49:43 +02:00
meta = {
homepage = http://brain-dump.org/projects/abduco;
license = licenses.isc;
2014-07-23 14:49:43 +02:00
description = "Allows programs to be run independently from its controlling terminal";
2015-03-02 16:23:30 +01:00
maintainers = with maintainers; [ pSub ];
2014-07-23 14:49:43 +02:00
platforms = with platforms; linux;
};
src = fetchurl {
url = "http://www.brain-dump.org/projects/abduco/${name}.tar.gz";
2015-03-23 15:55:30 +01:00
sha256 = "1fxwg2s5w183p0rwzsxizy9jdnilv5qqs647l3wl3khny6fp58xx";
2014-07-23 14:49:43 +02:00
};
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
installPhase = ''
make PREFIX=$out install
'';
}