2024-05-15 15:35:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gtk3, libdivsufsort, pkg-config, wrapGAppsHook3 }:
|
2020-10-11 12:50:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "flips";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "unstable-2023-03-15";
|
2020-10-11 12:50:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Alcaro";
|
|
|
|
repo = "Flips";
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "fdd5c6e34285beef5b9be759c9b91390df486c66";
|
|
|
|
hash = "sha256-uuHgpt7aWqiMTUILm5tAEGGeZrls3g/DdylYQgsfpTw=";
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
|
2020-10-11 12:50:04 +00:00
|
|
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Patcher for IPS and BPS files";
|
2020-10-11 12:50:04 +00:00
|
|
|
homepage = "https://github.com/Alcaro/Flips";
|
|
|
|
license = licenses.gpl3Plus;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = [ ];
|
2020-10-11 12:50:04 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "flips";
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
|
|
|
}
|