igir: use autoPatchelfHook

This fixes https://github.com/NixOS/nixpkgs/issues/279695
This commit is contained in:
esthromeris 2024-01-09 15:15:18 +01:00
parent c17bbc805f
commit b19c0e84e4
2 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,11 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
# for patching bundled 7z binary from the 7zip-bin node module
# at lib/node_modules/igir/node_modules/7zip-bin/linux/x64/7za
, autoPatchelfHook
, stdenv
}:
buildNpmPackage rec {
@ -21,6 +26,14 @@ buildNpmPackage rec {
patchShebangs scripts/update-readme-help.sh
'';
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ stdenv.cc.cc.lib ];
# from lib/node_modules/igir/node_modules/@node-rs/crc32-linux-x64-musl/crc32.linux-x64-musl.node
# Irrelevant to our use
autoPatchelfIgnoreMissingDeps = [ "libc.musl-x86_64.so.1" ];
meta = with lib; {
description = "A video game ROM collection manager to help filter, sort, patch, archive, and report on collections on any OS";
homepage = "https://igir.io";

View File

@ -1909,8 +1909,6 @@ with pkgs;
hyperpotamus = callPackage ../tools/misc/hyperpotamus { };
igir = callPackage ../tools/games/igir { };
immich-cli = callPackage ../tools/misc/immich-cli { };
inherit (callPackage ../tools/networking/ivpn/default.nix {}) ivpn ivpn-service;