5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
35 lines
916 B
Nix
35 lines
916 B
Nix
{ lib, stdenv, fetchurl, makeWrapper, mono, gtk2, curl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ckan";
|
|
version = "1.33.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/KSP-CKAN/CKAN/releases/download/v${version}/ckan.exe";
|
|
sha256 = "sha256-FIndxRyGDgXinP8ZX0o6LEJgGNNw84tCPw5FdVAU3TI=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ mono ];
|
|
|
|
libraries = lib.makeLibraryPath [ gtk2 curl ];
|
|
|
|
buildPhase = "true";
|
|
|
|
installPhase = ''
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Mod manager for Kerbal Space Program";
|
|
homepage = "https://github.com/KSP-CKAN/CKAN";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Baughn ymarkus ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|