2021-01-09 10:05:03 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, mono, gtk2, curl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ckan";
|
2021-01-09 10:05:03 +00:00
|
|
|
version = "1.29.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/KSP-CKAN/CKAN/releases/download/v${version}/ckan.exe";
|
|
|
|
sha256 = "10vd61mw2y7vmbnp6nd7b2sq22ixqd7zmd278z210w4njmvqn97h";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
dontUnpack = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
buildInputs = [ makeWrapper mono ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
libraries = stdenv.lib.makeLibraryPath [ gtk2 curl ];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
buildPhase = "true";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2021-01-09 10:05:03 +00:00
|
|
|
install -m 644 -D $src $out/bin/ckan.exe
|
|
|
|
makeWrapper ${mono}/bin/mono $out/bin/ckan \
|
|
|
|
--add-flags $out/bin/ckan.exe \
|
|
|
|
--set LD_LIBRARY_PATH $libraries
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mod manager for Kerbal Space Program";
|
|
|
|
homepage = "https://github.com/KSP-CKAN/CKAN";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Baughn ymarkus ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|