blob: cf7d2b718f83deb9776f5aefe831272342221e8f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ 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}";
hash = "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 ];
};
})
|