Merge pull request #297089 from emilytrau/drawio-darwin-signing
drawio: fix darwin signing failure
This commit is contained in:
commit
c22bcf97e2
|
@ -6,6 +6,7 @@
|
||||||
, copyDesktopItems
|
, copyDesktopItems
|
||||||
, prefetch-yarn-deps
|
, prefetch-yarn-deps
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, autoSignDarwinBinariesHook
|
||||||
, nodejs
|
, nodejs
|
||||||
, yarn
|
, yarn
|
||||||
, electron
|
, electron
|
||||||
|
@ -23,6 +24,11 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-+TCnVXcmAEpa7MiL0dyeoh2aUfIIO8eze9pEaHgKnME=";
|
hash = "sha256-+TCnVXcmAEpa7MiL0dyeoh2aUfIIO8eze9pEaHgKnME=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# `@electron/fuses` tries to run `codesign` and fails. Disable and use autoSignDarwinBinariesHook instead
|
||||||
|
postPatch = ''
|
||||||
|
sed -i -e 's/resetAdHocDarwinSignature:.*/resetAdHocDarwinSignature: false,/' build/fuses.js
|
||||||
|
'';
|
||||||
|
|
||||||
offlineCache = fetchYarnDeps {
|
offlineCache = fetchYarnDeps {
|
||||||
yarnLock = src + "/yarn.lock";
|
yarnLock = src + "/yarn.lock";
|
||||||
hash = "sha256-QS0bkDDQq3sn79TQ+pTZsmbmXgMccyLmlPLTsko7eGg=";
|
hash = "sha256-QS0bkDDQq3sn79TQ+pTZsmbmXgMccyLmlPLTsko7eGg=";
|
||||||
|
@ -35,6 +41,8 @@ stdenv.mkDerivation rec {
|
||||||
yarn
|
yarn
|
||||||
] ++ lib.optionals (!stdenv.isDarwin) [
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
||||||
copyDesktopItems
|
copyDesktopItems
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
autoSignDarwinBinariesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
ELECTRON_SKIP_BINARY_DOWNLOAD = true;
|
ELECTRON_SKIP_BINARY_DOWNLOAD = true;
|
||||||
|
|
|
@ -30749,7 +30749,9 @@ with pkgs;
|
||||||
|
|
||||||
drawing = callPackage ../applications/graphics/drawing { };
|
drawing = callPackage ../applications/graphics/drawing { };
|
||||||
|
|
||||||
drawio = callPackage ../applications/graphics/drawio { };
|
drawio = callPackage ../applications/graphics/drawio {
|
||||||
|
inherit (darwin) autoSignDarwinBinariesHook;
|
||||||
|
};
|
||||||
drawio-headless = callPackage ../applications/graphics/drawio/headless.nix { };
|
drawio-headless = callPackage ../applications/graphics/drawio/headless.nix { };
|
||||||
|
|
||||||
drawpile = libsForQt5.callPackage ../applications/graphics/drawpile { };
|
drawpile = libsForQt5.callPackage ../applications/graphics/drawpile { };
|
||||||
|
|
Loading…
Reference in New Issue
Block a user