Merge pull request #278289 from amarshall/bitwarden-update
bitwarden: fix build; 2023.12.0 -> 2023.12.1
This commit is contained in:
commit
4e44fb9c26
1 changed files with 16 additions and 5 deletions
|
@ -16,8 +16,10 @@
|
||||||
, moreutils
|
, moreutils
|
||||||
, napi-rs-cli
|
, napi-rs-cli
|
||||||
, nodejs_18
|
, nodejs_18
|
||||||
|
, patchutils_0_4_2
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, python3
|
, python3
|
||||||
|
, runCommand
|
||||||
, rustc
|
, rustc
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
}:
|
}:
|
||||||
|
@ -28,13 +30,13 @@ let
|
||||||
electron = electron_27;
|
electron = electron_27;
|
||||||
in buildNpmPackage rec {
|
in buildNpmPackage rec {
|
||||||
pname = "bitwarden";
|
pname = "bitwarden";
|
||||||
version = "2023.12.0";
|
version = "2023.12.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bitwarden";
|
owner = "bitwarden";
|
||||||
repo = "clients";
|
repo = "clients";
|
||||||
rev = "desktop-v${version}";
|
rev = "desktop-v${version}";
|
||||||
hash = "sha256-WYhLKV3j3Ktite5u1H4fSku38hCCrMzKoxtjq6aT9yo=";
|
hash = "sha256-kmMEi9jYMPFHIdXyZAkeu8rh+34fEAkFw9uhwUt5k9o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -51,14 +53,23 @@ in buildNpmPackage rec {
|
||||||
|
|
||||||
makeCacheWritable = true;
|
makeCacheWritable = true;
|
||||||
npmWorkspace = "apps/desktop";
|
npmWorkspace = "apps/desktop";
|
||||||
npmDepsHash = "sha256-QwG+D0M94HN1AyQlmzKeScZyksiUr5A9igEaox9DYN4=";
|
npmDepsHash = "sha256-IDqyHiXdMezdPNlZDyRdNzwC3SO5G3gI3h5zoxzzz/g=";
|
||||||
|
|
||||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
inherit patches src;
|
inherit src;
|
||||||
|
patches = map
|
||||||
|
(patch: runCommand
|
||||||
|
(builtins.baseNameOf patch)
|
||||||
|
{ nativeBuildInputs = [ patchutils_0_4_2 ]; }
|
||||||
|
''
|
||||||
|
< ${patch} filterdiff -p1 --include=${lib.escapeShellArg cargoRoot}'/*' > $out
|
||||||
|
''
|
||||||
|
)
|
||||||
|
patches;
|
||||||
patchFlags = [ "-p4" ];
|
patchFlags = [ "-p4" ];
|
||||||
sourceRoot = "${src.name}/${cargoRoot}";
|
sourceRoot = "${src.name}/${cargoRoot}";
|
||||||
hash = "sha256-pCy3hGhI3mXm4uTOaFMykOzJqK2PC0t0hE8MrJKtA/k=";
|
hash = "sha256-8A33f2q9GoSM8Wh55iqnSfqWIpeRBz+EQT+rmsZsuXs=";
|
||||||
};
|
};
|
||||||
cargoRoot = "apps/desktop/desktop_native";
|
cargoRoot = "apps/desktop/desktop_native";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue