summaryrefslogtreecommitdiffstats
path: root/pkgs/games
diff options
context:
space:
mode:
authorYannick Markus <ym@ymarkus.dev>2020-08-13 23:33:38 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-01-08 10:46:17 -0800
commit09b6ca477e0ea3c97c1aaab18f6257963b0327a7 (patch)
treeb181614b633eb7e456ebb724124d5bed6ff40f8e /pkgs/games
parent72d906a0eafd089c90a6daab24ef344a79b00046 (diff)
ckan 1.16.1 -> 1.29.2
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/ckan/default.nix46
1 files changed, 18 insertions, 28 deletions
diff --git a/pkgs/games/ckan/default.nix b/pkgs/games/ckan/default.nix
index a13ff8d66faf..2400f2fb5e85 100644
--- a/pkgs/games/ckan/default.nix
+++ b/pkgs/games/ckan/default.nix
@@ -1,44 +1,34 @@
-{ stdenv, fetchFromGitHub, makeWrapper, perl, mono, gtk2, curl }:
+{ stdenv, fetchurl, makeWrapper, mono, gtk2, curl }:
stdenv.mkDerivation rec {
pname = "ckan";
- version = "1.16.1";
+ version = "1.29.2";
- src = fetchFromGitHub {
- owner = "KSP-CKAN";
- repo = "CKAN";
- rev = "v${version}";
- sha256 = "0lfvl8w09lakz35szp5grfvhq8xx486f5igvj1m6azsql4n929lg";
+ src = fetchurl {
+ url = "https://github.com/KSP-CKAN/CKAN/releases/download/v${version}/ckan.exe";
+ sha256 = "10vd61mw2y7vmbnp6nd7b2sq22ixqd7zmd278z210w4njmvqn97h";
};
- buildInputs = [ makeWrapper perl mono ];
+ dontUnpack = true;
- postPatch = ''
- substituteInPlace bin/build \
- --replace /usr/bin/perl ${perl}/bin/perl
- '';
-
- # Tests don't currently work, as they try to write into /var/empty.
- doCheck = false;
- checkTarget = "test";
+ buildInputs = [ makeWrapper mono ];
libraries = stdenv.lib.makeLibraryPath [ gtk2 curl ];
+ buildPhase = "true";
+
installPhase = ''
- mkdir -p $out/bin
- for exe in *.exe; do
- install -m 0644 $exe $out/bin
- makeWrapper ${mono}/bin/mono $out/bin/$(basename $exe .exe) \
- --add-flags $out/bin/$exe \
- --set LD_LIBRARY_PATH $libraries
- done
+ 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 = {
+ meta = with stdenv.lib; {
description = "Mod manager for Kerbal Space Program";
homepage = "https://github.com/KSP-CKAN/CKAN";
- license = stdenv.lib.licenses.mit;
- maintainers = [ stdenv.lib.maintainers.Baughn ];
- platforms = stdenv.lib.platforms.all;
- };
+ license = licenses.mit;
+ maintainers = with maintainers; [ Baughn ymarkus ];
+ platforms = platforms.all;
+ };
}