forked from mirrors/nixpkgs
Merge pull request #238181 from NickCao/firefox_decrypt
firefox_decrypt: unstable-2022-12-21 -> unstable-2023-05-14
This commit is contained in:
commit
6b603adb20
|
@ -1,40 +1,30 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, stdenvNoCC
|
, buildPythonApplication
|
||||||
|
, setuptools
|
||||||
, nss
|
, nss
|
||||||
, wrapPython
|
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation rec {
|
buildPythonApplication rec {
|
||||||
pname = "firefox_decrypt";
|
pname = "firefox_decrypt";
|
||||||
version = "unstable-2022-12-21";
|
version = "unstable-2023-05-14";
|
||||||
|
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "unode";
|
owner = "unode";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "84bb368cc2f8d2055a8374ab1a40c403e0486859";
|
rev = "ac857efde75d86dd6bd5dfca25d4a0f73b75009f";
|
||||||
sha256 = "sha256-dyQTf6fgsQEmp++DeXl85nvyezm0Lq9onyfIdhQoGgI=";
|
sha256 = "sha256-34QS98nmrL98nzoZgeFSng8TJJc9BU1+Tzh2b+dsuCc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ wrapPython ];
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
buildInputs = [ nss ];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
install -Dm 0755 firefox_decrypt.py "$out/bin/firefox_decrypt"
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
makeWrapperArgs = [ "--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ nss ]) ];
|
makeWrapperArgs = [ "--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ nss ]) ];
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
wrapPythonPrograms
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script {
|
passthru.updateScript = nix-update-script {
|
||||||
extraArgs = [ "--version=branch" ];
|
extraArgs = [ "--version=branch" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue