getopt: 1.1.4 -> 1.1.6, modernize a bit

http://frodo.looijaard.name/project/getopt/release/1-1-6
http://frodo.looijaard.name/project/getopt/release/1-1-5

* don't rely on tarballs.nixos.org
* no need for custom builder
This commit is contained in:
Will Dietz 2019-04-29 18:09:34 -05:00 committed by Frederik Rietdijk
parent 9955f6301a
commit 8cc761c606
2 changed files with 12 additions and 12 deletions

View File

@ -1,4 +0,0 @@
source $stdenv/setup
installFlags="prefix=$out"
makeFlags="CFLAGS=-DWITHOUT_GETTEXT LIBCGETOPT=0"
genericBuild

View File

@ -1,15 +1,19 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "getopt-1.1.4";
builder = ./builder.sh;
stdenv.mkDerivation rec {
pname = "getopt";
version = "1.1.6";
src = fetchurl {
url = http://tarballs.nixos.org/getopt-1.1.4.tar.gz;
sha256 = "1arvjfzw6p310zbgv629w5hkyslrj44imf3r3s2r4ry2jfcks221";
url = "http://frodo.looijaard.name/system/files/software/${pname}/${pname}-${version}.tar.gz";
sha256 = "1zn5kp8ar853rin0ay2j3p17blxy16agpp8wi8wfg4x98b31vgyh";
};
preBuild = ''
export buildFlags=CC="$CC" # for darwin
'';
makeFlags = [
"WITHOUT_GETTEXT=1"
"LIBCGETOPT=0"
"prefix=${placeholder "out"}"
"CC:=$(CC)"
];
meta = {
platforms = stdenv.lib.platforms.unix;