Merge pull request #53147 from tilpner/abduco-update

abduco: 0.6 -> 2018-05-16
This commit is contained in:
Graham Christensen 2019-01-14 08:37:16 -05:00 committed by GitHub
commit 202bee9391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 20 deletions

View File

@ -1,9 +1,21 @@
{ stdenv, fetchurl, writeText, conf? null}:
{ stdenv, fetchFromGitHub, writeText, conf ? null }:
with stdenv.lib;
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 = {
homepage = http://brain-dump.org/projects/abduco;
@ -12,18 +24,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ pSub ];
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
'';
}