Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, gtk3, libdivsufsort, pkg-config, wrapGAppsHook }: 2 3stdenv.mkDerivation { 4 pname = "flips"; 5 version = "unstable-2021-10-28"; 6 7 src = fetchFromGitHub { 8 owner = "Alcaro"; 9 repo = "Flips"; 10 rev = "3a8733e74c9bdbb6b89da2b45913a0be3d0e1866"; 11 sha256 = "1jik580mz2spik5mgh60h93ryaj5x8dffncnr1lwija0v803xld7"; 12 }; 13 14 nativeBuildInputs = [ pkg-config wrapGAppsHook ]; 15 buildInputs = [ gtk3 libdivsufsort ]; 16 patches = [ ./use-system-libdivsufsort.patch ]; 17 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 18 buildPhase = '' 19 runHook preBuild 20 ./make.sh 21 runHook postBuild 22 ''; 23 24 meta = with lib; { 25 description = "A patcher for IPS and BPS files"; 26 homepage = "https://github.com/Alcaro/Flips"; 27 license = licenses.gpl3Plus; 28 maintainers = [ maintainers.xfix ]; 29 platforms = platforms.linux; 30 }; 31}