mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
33 lines
891 B
Nix
33 lines
891 B
Nix
{ lib, stdenv, fetchFromGitHub, gtk3, libdivsufsort, pkg-config, wrapGAppsHook }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "flips";
|
|
version = "unstable-2023-03-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Alcaro";
|
|
repo = "Flips";
|
|
rev = "fdd5c6e34285beef5b9be759c9b91390df486c66";
|
|
hash = "sha256-uuHgpt7aWqiMTUILm5tAEGGeZrls3g/DdylYQgsfpTw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
|
buildInputs = [ gtk3 libdivsufsort ];
|
|
patches = [ ./use-system-libdivsufsort.patch ];
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
./make.sh
|
|
runHook postBuild
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A patcher for IPS and BPS files";
|
|
homepage = "https://github.com/Alcaro/Flips";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.xfix ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "flips";
|
|
};
|
|
}
|