mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +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.
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ stdenvNoCC, lib, fetchFromGitea, just, imagemagick, makeWrapper, bash, dialog }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "kabeljau";
|
|
version = "2.1.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "annaaurora";
|
|
repo = "kabeljau";
|
|
rev = "v${version}";
|
|
hash = "sha256-yZHDnzNTdDXHR+Pi3NODqw4npzuthHgOJYnTmIvGyUE=";
|
|
};
|
|
|
|
# Inkscape is needed in a just recipe where it is used to export the SVG icon to several different sized PNGs.
|
|
nativeBuildInputs = [ just imagemagick makeWrapper ];
|
|
postPatch = ''
|
|
patchShebangs --host ${pname}
|
|
'';
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
just --set bin-path $out/bin --set share-path $out/share linux-install
|
|
wrapProgram $out/bin/${pname} --suffix PATH : ${
|
|
lib.makeBinPath [ dialog ]
|
|
}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Survive as a stray cat in an ncurses game";
|
|
mainProgram = "kabeljau";
|
|
homepage = "https://codeberg.org/annaaurora/kabeljau";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ annaaurora ];
|
|
};
|
|
}
|