mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
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:
parent
9955f6301a
commit
8cc761c606
@ -1,4 +0,0 @@
|
||||
source $stdenv/setup
|
||||
installFlags="prefix=$out"
|
||||
makeFlags="CFLAGS=-DWITHOUT_GETTEXT LIBCGETOPT=0"
|
||||
genericBuild
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user