ckan 1.16.1 -> 1.29.2
This commit is contained in:
parent
72d906a0ea
commit
09b6ca477e
|
@ -1,44 +1,34 @@
|
||||||
{ stdenv, fetchFromGitHub, makeWrapper, perl, mono, gtk2, curl }:
|
{ stdenv, fetchurl, makeWrapper, mono, gtk2, curl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ckan";
|
pname = "ckan";
|
||||||
version = "1.16.1";
|
version = "1.29.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchurl {
|
||||||
owner = "KSP-CKAN";
|
url = "https://github.com/KSP-CKAN/CKAN/releases/download/v${version}/ckan.exe";
|
||||||
repo = "CKAN";
|
sha256 = "10vd61mw2y7vmbnp6nd7b2sq22ixqd7zmd278z210w4njmvqn97h";
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0lfvl8w09lakz35szp5grfvhq8xx486f5igvj1m6azsql4n929lg";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ makeWrapper perl mono ];
|
dontUnpack = true;
|
||||||
|
|
||||||
postPatch = ''
|
buildInputs = [ makeWrapper mono ];
|
||||||
substituteInPlace bin/build \
|
|
||||||
--replace /usr/bin/perl ${perl}/bin/perl
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Tests don't currently work, as they try to write into /var/empty.
|
|
||||||
doCheck = false;
|
|
||||||
checkTarget = "test";
|
|
||||||
|
|
||||||
libraries = stdenv.lib.makeLibraryPath [ gtk2 curl ];
|
libraries = stdenv.lib.makeLibraryPath [ gtk2 curl ];
|
||||||
|
|
||||||
|
buildPhase = "true";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
install -m 644 -D $src $out/bin/ckan.exe
|
||||||
for exe in *.exe; do
|
makeWrapper ${mono}/bin/mono $out/bin/ckan \
|
||||||
install -m 0644 $exe $out/bin
|
--add-flags $out/bin/ckan.exe \
|
||||||
makeWrapper ${mono}/bin/mono $out/bin/$(basename $exe .exe) \
|
--set LD_LIBRARY_PATH $libraries
|
||||||
--add-flags $out/bin/$exe \
|
|
||||||
--set LD_LIBRARY_PATH $libraries
|
|
||||||
done
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Mod manager for Kerbal Space Program";
|
description = "Mod manager for Kerbal Space Program";
|
||||||
homepage = "https://github.com/KSP-CKAN/CKAN";
|
homepage = "https://github.com/KSP-CKAN/CKAN";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ stdenv.lib.maintainers.Baughn ];
|
maintainers = with maintainers; [ Baughn ymarkus ];
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue