Merge pull request #53147 from tilpner/abduco-update
abduco: 0.6 -> 2018-05-16
This commit is contained in:
commit
202bee9391
|
@ -1,9 +1,21 @@
|
||||||
{ 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";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "martanne";
|
||||||
|
repo = "abduco";
|
||||||
|
rev = "8f80aa8044d7ecf0e43a0294a09007d056b20e4c";
|
||||||
|
sha256 = "0wqcif633nbgnznn46j0sng9l0wncppw1x1c42f75b4p9hrph203";
|
||||||
|
};
|
||||||
|
|
||||||
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
||||||
|
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
||||||
|
|
||||||
|
CFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://brain-dump.org/projects/abduco;
|
homepage = http://brain-dump.org/projects/abduco;
|
||||||
|
@ -12,18 +24,4 @@ stdenv.mkDerivation rec {
|
||||||
maintainers = with maintainers; [ pSub ];
|
maintainers = with maintainers; [ pSub ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
||||||
CFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "http://www.brain-dump.org/projects/abduco/${name}.tar.gz";
|
|
||||||
sha256 = "1x1m58ckwsprljgmdy93mvgjyg9x3cqrzdf3mysp0mx97zhhj2f9";
|
|
||||||
};
|
|
||||||
|
|
||||||
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
|
||||||
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
make PREFIX=$out install
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue