2014-07-23 13:49:43 +01:00
|
|
|
{ stdenv, fetchurl, writeText, conf? null}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-01-17 13:06:15 +00:00
|
|
|
name = "abduco-0.5";
|
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";
|
2015-03-02 15:23:30 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2014-07-23 13:49:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.brain-dump.org/projects/abduco/${name}.tar.gz";
|
2016-01-17 13:06:15 +00:00
|
|
|
sha256 = "11phry5wnvwm9ckij5gxbrjfgdz3x38vpnm505q5ldc88im248mz";
|
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";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make PREFIX=$out install
|
|
|
|
'';
|
|
|
|
}
|