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.
43 lines
1.4 KiB
Nix
43 lines
1.4 KiB
Nix
{ lib, stdenv, fetchurl, makeDesktopItem, copyDesktopItems, SDL, lua5_1, pkg-config, SDL_mixer, SDL_image, SDL_ttf }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fish-fillets-ng";
|
|
version = "1.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/fillets/fillets-ng-${version}.tar.gz";
|
|
sha256 = "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij";
|
|
};
|
|
data = fetchurl {
|
|
url = "mirror://sourceforge/fillets/fillets-ng-data-${version}.tar.gz";
|
|
sha256 = "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config copyDesktopItems ];
|
|
buildInputs = [ SDL lua5_1 SDL_mixer SDL_image SDL_ttf ];
|
|
|
|
desktopItems = [ (makeDesktopItem {
|
|
name = "fish-fillets-ng";
|
|
exec = "fillets";
|
|
icon = "fish-fillets-ng";
|
|
desktopName = "Fish Fillets";
|
|
comment = "Puzzle game about witty fish saving the world sokoban-style";
|
|
categories = [ "Game" "LogicGame" ];
|
|
}) ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/games/fillets-ng
|
|
tar -xf ${data} -C $out/share/games/fillets-ng --strip-components=1
|
|
install -Dm644 ${./icon.xpm} $out/share/pixmaps/fish-fillets-ng.xpm
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Puzzle game";
|
|
mainProgram = "fillets";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
homepage = "https://fillets.sourceforge.net/";
|
|
};
|
|
}
|