nixpkgs/pkgs/games/ckan/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
916 B
Nix
Raw Normal View History

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