Finally add `rom-properties` to `home.packages`!

This commit is contained in:
Whovian NTSN 2024-05-18 17:40:09 -04:00
parent 3b82363534
commit d4bb874a57
3 changed files with 72 additions and 2 deletions

View File

@ -118,7 +118,7 @@
ird_tools = pkgs.callPackage ./home/packages/ird_tools/package.nix {};
ps3dec = pkgs.callPackage ./home/packages/ps3dec/package.nix {};
sabretools = pkgs.callPackage ./home/packages/sabretools/package.nix {};
# rom-properties = callPackage ./home/packages/rom-properties/package.nix {};
rom-properties = callPackage ./home/packages/rom-properties/package.nix {};
};
};
}

View File

@ -0,0 +1,70 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
gettext,
curl,
libjpeg,
libpng,
libseccomp,
lz4,
lzo,
nettle,
pkg-config,
tinyxml2,
zlib,
zstd,
glib
}:
stdenv.mkDerivation {
pname = "rom-properties";
version = "git";
src = fetchFromGitHub {
owner = "GerbilSoft";
repo = "rom-properties";
rev = "1df55be31d5aab88db1ba722267255389a812802";
hash = "";
};
nativeBuildInputs = [
cmake
nettle.dev
pkg-config
glib.dev
];
buildInputs = [
gettext
curl.dev
libjpeg.dev
libpng.dev
libseccomp.dev
lz4.dev
lzo
tinyxml2
zlib.dev
zstd.dev
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DINSTALL_APPARMOR=OFF"
];
postPatch = ''
substituteInPlace "src/librpsecure/os-secure_linux.c" \
--replace "SCMP_SYS(write)," "SCMP_SYS(write), SCMP_SYS(getdents64),"
'';
meta = {
description = "ROM Properties Page shell extension";
homepage = "https://github.com/GerbilSoft/rom-properties";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ ];
mainProgram = "rpcli";
platforms = lib.platforms.all;
};
}

View File

@ -13,7 +13,7 @@ let
ird_tools = callPackage ./packages/ird_tools/package.nix {};
ps3dec = callPackage ./packages/ps3dec/package.nix {};
sabretools = callPackage ./packages/sabretools/package.nix {};
# rom-properties = callPackage ./packages/rom-properties/package.nix {};
rom-properties = callPackage ./packages/rom-properties/package.nix {};
};
callPackage = pkgs.callPackage;