nixos-linapple/package.nix

50 lines
744 B
Nix
Raw Normal View History

2024-08-23 12:03:24 -05:00
{
curl,
fetchFromGitHub,
2024-10-27 13:02:51 -05:00
imagemagick,
2024-08-23 12:03:24 -05:00
lib,
libzip,
pkg-config,
SDL,
SDL_image,
stdenv,
...
}:
stdenv.mkDerivation (final: {
pname = "linapple";
version = "2.3.0";
2024-08-23 12:05:20 -05:00
2024-08-23 12:03:24 -05:00
src = fetchFromGitHub {
owner = "linappleii";
repo = "linapple";
rev = "eb1f22e6093bc95cc93756fb905180d01c28656b";
hash = "sha256-KwUOmjGnfjsQomtn2So/SLoe3XSStD+TbWPsxJaaGcc=";
};
2024-08-23 12:05:20 -05:00
2024-08-23 12:03:24 -05:00
patches = [
./asset-dir.patch
];
2024-08-23 12:05:20 -05:00
2024-08-23 12:03:24 -05:00
nativeBuildInputs = [
2024-10-27 13:02:51 -05:00
imagemagick
2024-08-23 12:03:24 -05:00
];
2024-08-23 12:05:20 -05:00
2024-08-23 12:03:24 -05:00
buildInputs = [
curl
libzip
pkg-config
SDL
SDL_image
];
2024-08-23 12:05:20 -05:00
2024-08-23 12:03:24 -05:00
makeFlags = [
"DESTDIR=$(out)"
];
meta = {
homepage = "https://github.com/linappleii/linapple";
license = lib.licenses.gpl2Plus;
mainProgram = "linapple";
};
})