2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gtk3, libdivsufsort, pkg-config, wrapGAppsHook }:
|
2020-03-18 15:34:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "flips";
|
2021-06-06 12:23:49 +01:00
|
|
|
version = "unstable-2021-05-18";
|
2020-03-18 15:34:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Alcaro";
|
|
|
|
repo = "Flips";
|
2021-06-06 12:23:49 +01:00
|
|
|
rev = "3476e5e46fc6f10df475f0cad1714358ba04c756";
|
|
|
|
sha256 = "0s13qrmqfmlb2vy0smpgw39vjkl8vzsmpzk52jnc9r7b4hisii39";
|
2020-03-18 15:34:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
|
|
|
buildInputs = [ gtk3 libdivsufsort ];
|
|
|
|
patches = [ ./use-system-libdivsufsort.patch ];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2021-06-06 12:23:49 +01:00
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
./make.sh
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
2020-03-18 15:34:23 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-18 15:34:23 +00:00
|
|
|
description = "A patcher for IPS and BPS files";
|
|
|
|
homepage = "https://github.com/Alcaro/Flips";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.xfix ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|