Skip to content

Commit

Permalink
regripper: fix perl libs not in path; 0-unstable-2024-11-02 -> 0-unst…
Browse files Browse the repository at this point in the history
…able-2024-12-12 (NixOS#366270)
  • Loading branch information
SuperSandro2000 authored Jan 2, 2025
2 parents 2cf40b4 + 5613d83 commit e36ab94
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions pkgs/by-name/re/regripper/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,45 @@
lib,
stdenv,
fetchFromGitHub,
makeWrapper,
perl,
perlPackages,
runtimeShell,
}:

stdenv.mkDerivation rec {
let
perlDeps = [
perlPackages.ParseWin32Registry
];
in
stdenv.mkDerivation {
pname = "regripper";
version = "0-unstable-2024-11-02";
version = "0-unstable-2024-12-12";

src = fetchFromGitHub {
owner = "keydet89";
repo = "RegRipper3.0";
rev = "89f3cac57e10bce1a79627e6038353e8e8a0c378";
hash = "sha256-dW3Gr4HQH484i47Bg+CEnBYoGQQRMBJr88+YeuU+iV4=";
rev = "bdf7ac2500a41319479846fe07202b7e8a61ca1f";
hash = "sha256-JEBwTpDck0w85l0q5WjF1d20NyU+GJ89yAzbkUVOsu0=";
};

nativeBuildInputs = [ makeWrapper ];

propagatedBuildInputs = [
perl
perlPackages.ParseWin32Registry
];
] ++ perlDeps;

installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share}
rm -r *.md *.exe *.bat *.dll
rm -r *.md *.exe *.bat *.dll *.zip
cp -aR . "$out/share/regripper/"
cat > "$out/bin/regripper" << EOF
#!${runtimeShell}
exec ${perl}/bin/perl $out/share/regripper/rip.pl "\$@"
EOF
chmod u+x "$out/bin/regripper"
makeWrapper ${perl}/bin/perl $out/bin/regripper \
--add-flags "$out/share/regripper/rip.pl" \
--set PERL5LIB ${perlPackages.makeFullPerlPath perlDeps}
runHook postInstall
'';
Expand Down

0 comments on commit e36ab94

Please sign in to comment.