mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +00:00
28 lines
802 B
Nix
28 lines
802 B
Nix
{ stdenv, fetchurl, writeText, conf? null}:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "abduco-0.4";
|
|
|
|
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.linux;
|
|
};
|
|
|
|
src = fetchurl {
|
|
url = "http://www.brain-dump.org/projects/abduco/${name}.tar.gz";
|
|
sha256 = "1fxwg2s5w183p0rwzsxizy9jdnilv5qqs647l3wl3khny6fp58xx";
|
|
};
|
|
|
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
|
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
|
|
|
installPhase = ''
|
|
make PREFIX=$out install
|
|
'';
|
|
}
|