nixos-linapple/package.nix

48 lines
803 B
Nix
Raw Normal View History

2024-08-23 12:03:24 -05:00
{
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)"
];
# installPhase = ''
# make install DESTDIR=$out
# '';
meta = {
homepage = "https://github.com/linappleii/linapple";
license = lib.licenses.gpl2Plus;
mainProgram = "linapple";
};
})