mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
33 lines
857 B
Nix
33 lines
857 B
Nix
{ lib, buildNimPackage, fetchFromGitea, raylib }:
|
|
|
|
buildNimPackage (finalAttrs: {
|
|
pname = "snekim";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "annaaurora";
|
|
repo = "snekim";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-Qgvq4CkGvNppYFpITCCifOHtVQYRQJPEK3rTJXQkTvI=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
lockFile = ./lock.json;
|
|
|
|
nimFlags = [ "-d:nimraylib_now_shared" ];
|
|
|
|
postInstall = ''
|
|
install -D snekim.desktop -t $out/share/applications
|
|
install -D icons/hicolor/48x48/snekim.svg -t $out/share/icons/hicolor/48x48/apps
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://codeberg.org/annaaurora/snekim";
|
|
description = "Simple implementation of the classic snake game";
|
|
mainProgram = "snekim";
|
|
license = lib.licenses.lgpl3Only;
|
|
maintainers = [ lib.maintainers.annaaurora ];
|
|
};
|
|
})
|