2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, mono, gtk2, curl }:
|
2016-05-04 02:12:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ckan";
|
2020-08-13 22:33:38 +01:00
|
|
|
version = "1.29.2";
|
2016-05-04 02:12:39 +01:00
|
|
|
|
2020-08-13 22:33:38 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/KSP-CKAN/CKAN/releases/download/v${version}/ckan.exe";
|
|
|
|
sha256 = "10vd61mw2y7vmbnp6nd7b2sq22ixqd7zmd278z210w4njmvqn97h";
|
2016-05-04 02:12:39 +01:00
|
|
|
};
|
|
|
|
|
2020-08-13 22:33:38 +01:00
|
|
|
dontUnpack = true;
|
2016-05-04 02:12:39 +01:00
|
|
|
|
2020-08-13 22:33:38 +01:00
|
|
|
buildInputs = [ makeWrapper mono ];
|
2016-05-04 02:12:39 +01:00
|
|
|
|
2016-09-11 22:24:51 +01:00
|
|
|
libraries = stdenv.lib.makeLibraryPath [ gtk2 curl ];
|
2016-05-06 17:57:11 +01:00
|
|
|
|
2020-08-13 22:33:38 +01:00
|
|
|
buildPhase = "true";
|
|
|
|
|
2016-05-04 02:12:39 +01:00
|
|
|
installPhase = ''
|
2020-08-13 22:33:38 +01: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
|
2016-05-04 02:12:39 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-05-04 02:12:39 +01:00
|
|
|
description = "Mod manager for Kerbal Space Program";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/KSP-CKAN/CKAN";
|
2020-08-13 22:33:38 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Baughn ymarkus ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2016-05-04 02:12:39 +01:00
|
|
|
}
|