mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
ckan: Add curl to runtime libraries
This commit is contained in:
parent
4ba7767d91
commit
3d8f9a6937
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, makeWrapper, perl, mono, gtk }:
|
{ stdenv, fetchFromGitHub, makeWrapper, perl, mono, gtk, curl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ckan-${version}";
|
name = "ckan-${version}";
|
||||||
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0lfvl8w09lakz35szp5grfvhq8xx486f5igvj1m6azsql4n929lg";
|
sha256 = "0lfvl8w09lakz35szp5grfvhq8xx486f5igvj1m6azsql4n929lg";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ makeWrapper perl mono gtk ];
|
buildInputs = [ makeWrapper perl mono ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace bin/build \
|
substituteInPlace bin/build \
|
||||||
@ -22,13 +22,15 @@ stdenv.mkDerivation rec {
|
|||||||
doCheck = false;
|
doCheck = false;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
|
libraries = stdenv.lib.makeLibraryPath [ gtk curl ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for exe in *.exe; do
|
for exe in *.exe; do
|
||||||
install -m 0644 $exe $out/bin
|
install -m 0644 $exe $out/bin
|
||||||
makeWrapper ${mono}/bin/mono $out/bin/$(basename $exe .exe) \
|
makeWrapper ${mono}/bin/mono $out/bin/$(basename $exe .exe) \
|
||||||
--add-flags $out/bin/$exe \
|
--add-flags $out/bin/$exe \
|
||||||
--set LD_LIBRARY_PATH ${gtk.out}/lib
|
--set LD_LIBRARY_PATH $libraries
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user