2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, writeText, conf ? null }:
|
2014-07-23 12:49:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-03-18 16:03:00 +00:00
|
|
|
pname = "abduco";
|
|
|
|
version = "2020-04-30";
|
2014-07-23 12:49:43 +00:00
|
|
|
|
2019-01-01 15:47:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martanne";
|
|
|
|
repo = "abduco";
|
2021-03-18 16:03:00 +00:00
|
|
|
rev = "8c32909a159aaa9484c82b71f05b7a73321eb491";
|
|
|
|
sha256 = "0a3p8xljhpk7zh203s75248blfir15smgw5jmszwbmdpy4mqzd53";
|
2019-01-01 15:47:40 +00:00
|
|
|
};
|
2014-07-23 12:49:43 +00:00
|
|
|
|
2021-03-18 16:03:00 +00:00
|
|
|
preBuild = lib.optionalString (conf != null)
|
|
|
|
"cp ${writeText "config.def.h" conf} config.def.h";
|
2018-09-22 14:07:34 +00:00
|
|
|
|
2021-03-18 16:03:00 +00:00
|
|
|
installFlags = [ "install-completion" ];
|
2021-01-15 09:19:50 +00:00
|
|
|
CFLAGS = lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
|
2014-07-23 12:49:43 +00:00
|
|
|
|
2021-03-18 16:03:00 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://brain-dump.org/projects/abduco";
|
2019-01-01 15:47:40 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
description = "Allows programs to be run independently from its controlling terminal";
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2014-07-23 12:49:43 +00:00
|
|
|
}
|