nixpkgs/pkgs/by-name/ig/igir/package.nix
Reno Dakota 52bf1163fa
treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00:00

47 lines
1.3 KiB
Nix

{ 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 {
pname = "igir";
version = "2.11.0";
src = fetchFromGitHub {
owner = "emmercm";
repo = "igir";
rev = "v${version}";
hash = "sha256-NG0ZP8LOm7fZVecErTuLOfbp1yvXwHnwPkWTBzUJXWE=";
};
npmDepsHash = "sha256-ADIEzr6PkGaJz27GKSVyTsrbz5zbud7BUb+OXPtP1Vo=";
# I have no clue why I have to do this
postPatch = ''
patchShebangs scripts/update-readme-help.sh
'';
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
# 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 = "Video game ROM collection manager to help filter, sort, patch, archive, and report on collections on any OS";
mainProgram = "igir";
homepage = "https://igir.io";
changelog = "https://github.com/emmercm/igir/releases/tag/${src.rev}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
};
}