depot/third_party/nixpkgs/pkgs/games/snekim/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

34 lines
877 B
Nix

{ lib, nimPackages, fetchFromGitea, raylib }:
nimPackages.buildNimPackage rec {
pname = "snekim";
version = "1.2.0";
nimBinOnly = true;
src = fetchFromGitea {
domain = "codeberg.org";
owner = "annaaurora";
repo = "snekim";
rev = "v${version}";
sha256 = "sha256-Qgvq4CkGvNppYFpITCCifOHtVQYRQJPEK3rTJXQkTvI=";
};
strictDeps = true;
buildInputs = [ nimPackages.nimraylib-now raylib ];
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 = with lib; {
homepage = "https://codeberg.org/annaaurora/snekim";
description = "A simple implementation of the classic snake game";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ annaaurora ];
};
}