2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gtk3, libdivsufsort, pkg-config, wrapGAppsHook }:
|
2020-10-11 12:50:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "flips";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "unstable-2021-10-28";
|
2020-10-11 12:50:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Alcaro";
|
|
|
|
repo = "Flips";
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "3a8733e74c9bdbb6b89da2b45913a0be3d0e1866";
|
|
|
|
sha256 = "1jik580mz2spik5mgh60h93ryaj5x8dffncnr1lwija0v803xld7";
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
|
|
|
buildInputs = [ gtk3 libdivsufsort ];
|
|
|
|
patches = [ ./use-system-libdivsufsort.patch ];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
./make.sh
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
2020-10-11 12:50:04 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 12:50:04 +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;
|
|
|
|
};
|
|
|
|
}
|