mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
46 lines
1.2 KiB
Nix
46 lines
1.2 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.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emmercm";
|
|
repo = "igir";
|
|
rev = "v${version}";
|
|
hash = "sha256-tfwXvLUcueGnImzmfUTV7l00+peLlJsxhreejoSVPPo=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-MpTGG/ySZ6xw+bW+AEFQqEFbN2FutopkLXtx0VlqmjE=";
|
|
|
|
# I have no clue why I have to do this
|
|
postPatch = ''
|
|
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 = "Video game ROM collection manager to help filter, sort, patch, archive, and report on collections on any OS";
|
|
mainProgram = "igir";
|
|
homepage = "https://igir.io";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ TheBrainScrambler ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|