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

30 lines
879 B
Nix
Raw Normal View History

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