2019-01-01 16:47:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub, writeText, conf ? null }:
|
2014-07-23 14:49:43 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-01 16:47:40 +01:00
|
|
|
name = "abduco-2018-05-16";
|
2014-07-23 14:49:43 +02:00
|
|
|
|
2019-01-01 16:47:40 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martanne";
|
|
|
|
repo = "abduco";
|
|
|
|
rev = "8f80aa8044d7ecf0e43a0294a09007d056b20e4c";
|
|
|
|
sha256 = "0wqcif633nbgnznn46j0sng9l0wncppw1x1c42f75b4p9hrph203";
|
|
|
|
};
|
2014-07-23 14:49:43 +02:00
|
|
|
|
2019-01-01 16:47:40 +01:00
|
|
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
|
|
|
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
2018-09-22 16:07:34 +02:00
|
|
|
|
2019-01-01 16:47:40 +01:00
|
|
|
CFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
|
2014-07-23 14:49:43 +02:00
|
|
|
|
2019-01-01 16:47:40 +01:00
|
|
|
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 = platforms.unix;
|
|
|
|
};
|
2014-07-23 14:49:43 +02:00
|
|
|
}
|