ma pkgs.pkgrename: allow-multiple-definitions
i have no idea what i am doing
This commit is contained in:
parent
b3c93de90b
commit
fa8e3964ba
|
@ -2,19 +2,19 @@
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pkgrename";
|
name = "pkgrename";
|
||||||
version = "1.03";
|
version = "1.05";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hippie68";
|
owner = "hippie68";
|
||||||
repo = "pkgrename";
|
repo = "pkgrename";
|
||||||
rev = "c3e5c47ed9367273bd09577af46d3d9bf87b2a50";
|
rev = "c7c95f0ea49324433db4a7df8db8b0905198e62e";
|
||||||
sha256 = "0cphxdpj04h1i0qf5mji3xqdsbyilvd5b4gwp4vx914r6k5f0xf3";
|
sha256 = "0cphxdpj04h1i0qf5mji3xqdsbyilvd5b4gwp4vx914r6k5f0xf3";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ curl.dev ];
|
buildInputs = [ curl.dev ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cd pkgrename.c
|
cd pkgrename.c
|
||||||
gcc pkgrename.c src/*.c -o pkgrename -lcurl -s -O1 $(curl-config --cflags --libs)
|
$CC pkgrename.c src/*.c -o pkgrename -s -O3 $(curl-config --cflags --libs) -Wl,--allow-multiple-definition
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D pkgrename $out/bin/pkgrename
|
install -D pkgrename $out/bin/pkgrename
|
||||||
|
|
Loading…
Reference in a new issue