48 lines
803 B
Nix
48 lines
803 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)"
|
||
|
];
|
||
|
# installPhase = ''
|
||
|
# make install DESTDIR=$out
|
||
|
# '';
|
||
|
|
||
|
meta = {
|
||
|
homepage = "https://github.com/linappleii/linapple";
|
||
|
license = lib.licenses.gpl2Plus;
|
||
|
mainProgram = "linapple";
|
||
|
};
|
||
|
})
|