Merge staging-next into staging
This commit is contained in:
commit
8d04ddbea5
|
@ -11,10 +11,13 @@
|
|||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xz";
|
||||
version = "5.4.6";
|
||||
version = "5.4.6"; # Beware of CVE-2024-3094 and related risks!!!
|
||||
|
||||
src = fetchurl {
|
||||
url = with finalAttrs; "https://github.com/tukaani-project/xz/releases/download/v${version}/xz-${version}.tar.bz2";
|
||||
url = with finalAttrs;
|
||||
# The original URL has been taken down.
|
||||
# "https://github.com/tukaani-project/xz/releases/download/v${version}/xz-${version}.tar.bz2";
|
||||
"mirror://sourceforge/lzmautils/xz-${version}.tar.bz2";
|
||||
sha256 = "sha256-kThRsnTo4dMXgeyUnxwj6NvPDs9uc6JDbcIXad0+b0k=";
|
||||
};
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
, libassuan
|
||||
, libgpg-error
|
||||
, libiconv
|
||||
, makeBinaryWrapper
|
||||
, texinfo
|
||||
, common-updater-scripts
|
||||
, writers
|
||||
|
@ -37,14 +38,17 @@ stdenv.mkDerivation rec {
|
|||
(allow process-exec (literal "/usr/libexec/PlistBuddy"))
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook texinfo ];
|
||||
nativeBuildInputs = [ autoreconfHook makeBinaryWrapper texinfo ];
|
||||
buildInputs = [ libassuan libgpg-error libiconv Cocoa ];
|
||||
|
||||
configureFlags = [ "--enable-maintainer-mode" "--disable-ncurses" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/Applications
|
||||
mkdir -p $out/Applications $out/bin
|
||||
mv macosx/pinentry-mac.app $out/Applications
|
||||
|
||||
# Compatibility with `lib.getExe`
|
||||
makeWrapper $out/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac $out/bin/pinentry-mac
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
@ -85,6 +89,6 @@ stdenv.mkDerivation rec {
|
|||
license = lib.licenses.gpl2Plus;
|
||||
homepage = "https://github.com/GPGTools/pinentry-mac";
|
||||
platforms = lib.platforms.darwin;
|
||||
mainProgram = passthru.binaryPath;
|
||||
mainProgram = "pinentry-mac";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue