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