2024-07-27 06:49:29 +00:00
|
|
|
{ lib, buildNimPackage, fetchFromGitea }:
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildNimPackage (finalAttrs: {
|
2023-04-12 12:48:02 +00:00
|
|
|
pname = "snekim";
|
|
|
|
version = "1.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "annaaurora";
|
|
|
|
repo = "snekim";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Qgvq4CkGvNppYFpITCCifOHtVQYRQJPEK3rTJXQkTvI=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
lockFile = ./lock.json;
|
2023-04-12 12:48:02 +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
|
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = {
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://codeberg.org/annaaurora/snekim";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple implementation of the classic snake game";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "snekim";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = lib.licenses.lgpl3Only;
|
|
|
|
maintainers = [ lib.maintainers.annaaurora ];
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|