mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
abduco: 0.6 -> 2018-05-16
This commit is contained in:
parent
c5729a30f8
commit
2922ae9ee7
|
@ -1,29 +1,27 @@
|
||||||
{ stdenv, fetchurl, writeText, conf? null}:
|
{ stdenv, fetchFromGitHub, writeText, conf ? null }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "abduco-0.6";
|
name = "abduco-2018-05-16";
|
||||||
|
|
||||||
meta = {
|
src = fetchFromGitHub {
|
||||||
homepage = http://brain-dump.org/projects/abduco;
|
owner = "martanne";
|
||||||
license = licenses.isc;
|
repo = "abduco";
|
||||||
description = "Allows programs to be run independently from its controlling terminal";
|
rev = "8f80aa8044d7ecf0e43a0294a09007d056b20e4c";
|
||||||
maintainers = with maintainers; [ pSub ];
|
sha256 = "0wqcif633nbgnznn46j0sng9l0wncppw1x1c42f75b4p9hrph203";
|
||||||
platforms = platforms.unix;
|
};
|
||||||
};
|
|
||||||
|
|
||||||
CFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
||||||
|
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
||||||
|
|
||||||
src = fetchurl {
|
CFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
|
||||||
url = "http://www.brain-dump.org/projects/abduco/${name}.tar.gz";
|
|
||||||
sha256 = "1x1m58ckwsprljgmdy93mvgjyg9x3cqrzdf3mysp0mx97zhhj2f9";
|
|
||||||
};
|
|
||||||
|
|
||||||
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
meta = {
|
||||||
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
homepage = http://brain-dump.org/projects/abduco;
|
||||||
|
license = licenses.isc;
|
||||||
installPhase = ''
|
description = "Allows programs to be run independently from its controlling terminal";
|
||||||
make PREFIX=$out install
|
maintainers = with maintainers; [ pSub ];
|
||||||
'';
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue