2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, mono, gtk2, curl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ckan";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.33.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";
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-FIndxRyGDgXinP8ZX0o6LEJgGNNw84tCPw5FdVAU3TI=";
|
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-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ mono ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
libraries = lib.makeLibraryPath [ gtk2 curl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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-15 22:18:51 +00:00
|
|
|
meta = with 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
|
|
|
}
|