nixos-linapple/package.nix
2024-08-23 12:05:20 -05:00

49 lines
746 B
Nix

{
curl,
fetchFromGitHub,
imagemagick7,
lib,
libzip,
pkg-config,
SDL,
SDL_image,
stdenv,
...
}:
stdenv.mkDerivation (final: {
pname = "linapple";
version = "2.3.0";
src = fetchFromGitHub {
owner = "linappleii";
repo = "linapple";
rev = "eb1f22e6093bc95cc93756fb905180d01c28656b";
hash = "sha256-KwUOmjGnfjsQomtn2So/SLoe3XSStD+TbWPsxJaaGcc=";
};
patches = [
./asset-dir.patch
];
nativeBuildInputs = [
imagemagick7
];
buildInputs = [
curl
libzip
pkg-config
SDL
SDL_image
];
makeFlags = [
"DESTDIR=$(out)"
];
meta = {
homepage = "https://github.com/linappleii/linapple";
license = lib.licenses.gpl2Plus;
mainProgram = "linapple";
};
})