2014-07-23 14:49:43 +02:00
|
|
|
{ stdenv, fetchurl, writeText, conf? null}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-03-02 16:23:30 +01:00
|
|
|
name = "abduco-0.3";
|
2014-07-23 14:49:43 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://brain-dump.org/projects/abduco;
|
2014-07-26 02:39:14 +02:00
|
|
|
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-02 16:23:30 +01:00
|
|
|
sha256 = "1m4hafwvpnzz53n15757zrsx3xqv51gpnf3mnxqkzyr5mswz0jwk";
|
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
|
|
|
|
'';
|
|
|
|
}
|