2014-07-23 13:49:43 +01:00
|
|
|
{ stdenv, fetchurl, writeText, conf? null}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-15 15:21:36 +00:00
|
|
|
name = "abduco-0.2";
|
2014-07-23 13:49:43 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://brain-dump.org/projects/abduco;
|
2014-07-26 01:39:14 +01:00
|
|
|
license = licenses.isc;
|
2014-07-23 13:49:43 +01:00
|
|
|
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";
|
2014-11-15 15:21:36 +00:00
|
|
|
sha256 = "04hrlxb02h2j8vxjnj263slyzxgkf7sncxfm0iwds5097f85mdy8";
|
2014-07-23 13:49:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
|
|
|
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make PREFIX=$out install
|
|
|
|
'';
|
|
|
|
}
|