nixpkgs/pkgs/by-name/sn/snekim/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
831 B
Nix
Raw Normal View History

2023-11-20 16:18:09 +00:00
{ lib, buildNimPackage, fetchFromGitea, raylib }:
2022-11-05 11:30:38 +00:00
2023-11-20 16:18:09 +00:00
buildNimPackage (finalAttrs: {
2022-11-05 11:30:38 +00:00
pname = "snekim";
version = "1.2.0";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "annaaurora";
repo = "snekim";
2023-11-20 16:18:09 +00:00
rev = "v${finalAttrs.version}";
2022-11-05 11:30:38 +00:00
sha256 = "sha256-Qgvq4CkGvNppYFpITCCifOHtVQYRQJPEK3rTJXQkTvI=";
};
strictDeps = true;
2023-11-20 16:18:09 +00:00
lockFile = ./lock.json;
2022-11-05 11:30:38 +00:00
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
'';
2023-11-20 16:18:09 +00:00
meta = {
2022-11-05 11:30:38 +00:00
homepage = "https://codeberg.org/annaaurora/snekim";
description = "A simple implementation of the classic snake game";
2023-11-20 16:18:09 +00:00
license = lib.licenses.lgpl3Only;
maintainers = [ lib.maintainers.annaaurora ];
2022-11-05 11:30:38 +00:00
};
2023-11-20 16:18:09 +00:00
})