mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
939 B
Nix
37 lines
939 B
Nix
{ lib, stdenv, fetchurl, makeWrapper, mono, gtk2, curl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ckan";
|
|
version = "1.35.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/KSP-CKAN/CKAN/releases/download/v${version}/ckan.exe";
|
|
sha256 = "sha256-VeuvaxdA+l+jKg4bUv79hNnOXgLXKJdiMYsmpTvX4og=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ mono ];
|
|
|
|
libraries = lib.makeLibraryPath [ gtk2 curl ];
|
|
|
|
dontBuild = 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";
|
|
mainProgram = "ckan";
|
|
homepage = "https://github.com/KSP-CKAN/CKAN";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Baughn ymarkus ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|