Skip to content

Commit dba9da8

Browse files
authored
element-desktop: 1.11.87 -> 1.11.89, element-{web,desktop}: move to pkgs/by-name, format (#365951)
2 parents 6123876 + 1d5dcb8 commit dba9da8

File tree

16 files changed

+131
-127
lines changed

16 files changed

+131
-127
lines changed

pkgs/applications/networking/instant-messengers/element/element-web.nix

Lines changed: 0 additions & 85 deletions
This file was deleted.

pkgs/applications/networking/instant-messengers/element/pin.nix

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"version" = "1.11.89";
3+
"hashes" = {
4+
"desktopSrcHash" = "sha256-vZLM1AIMxDltB+GeQEcYifnaBC1+4wWkotPFuelHxT0=";
5+
"desktopYarnHash" = "1n057ic4dzcyg3wfr8jj7vab00jg2d1m38y5zk1kab1pka163f1q";
6+
};
7+
}

pkgs/applications/networking/instant-messengers/element/keytar/default.nix renamed to pkgs/by-name/el/element-desktop/keytar/default.nix

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
pkg-config,
99
libsecret,
1010
xcbuild,
11-
Security,
12-
AppKit,
1311
fetchNpmDeps,
1412
npmHooks,
1513
}:
@@ -36,12 +34,7 @@ stdenv.mkDerivation rec {
3634
npmHooks.npmConfigHook
3735
] ++ lib.optional stdenv.hostPlatform.isDarwin xcbuild;
3836

39-
buildInputs =
40-
lib.optionals (!stdenv.hostPlatform.isDarwin) [ libsecret ]
41-
++ lib.optionals stdenv.hostPlatform.isDarwin [
42-
Security
43-
AppKit
44-
];
37+
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [ libsecret ];
4538

4639
npmDeps = fetchNpmDeps {
4740
inherit src;

pkgs/applications/networking/instant-messengers/element/keytar/pin.json renamed to pkgs/by-name/el/element-desktop/keytar/pin.json

File renamed without changes.

pkgs/applications/networking/instant-messengers/element/keytar/update.sh renamed to pkgs/by-name/el/element-desktop/keytar/update.sh

File renamed without changes.

pkgs/applications/networking/instant-messengers/element/element-desktop.nix renamed to pkgs/by-name/el/element-desktop/package.nix

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,18 @@
1313
element-web,
1414
sqlcipher,
1515
callPackage,
16-
Security,
17-
AppKit,
18-
CoreServices,
1916
desktopToDarwinBundle,
2017
useKeytar ? true,
2118
# command line arguments which are always set
2219
commandLineArgs ? "",
2320
}:
2421

2522
let
26-
pinData = import ./pin.nix;
23+
pinData = import ./element-desktop-pin.nix;
2724
inherit (pinData.hashes) desktopSrcHash desktopYarnHash;
2825
executableName = "element-desktop";
29-
keytar = callPackage ./keytar { inherit Security AppKit; };
30-
seshat = callPackage ./seshat { inherit CoreServices; };
26+
keytar = callPackage ./keytar { };
27+
seshat = callPackage ./seshat { };
3128
electron = electron_33;
3229
in
3330
stdenv.mkDerivation (
@@ -146,6 +143,7 @@ stdenv.mkDerivation (
146143
'';
147144

148145
passthru = {
146+
# run with: nix-shell ./maintainers/scripts/update.nix --argstr package element-desktop
149147
updateScript = ./update.sh;
150148

151149
# TL;DR: keytar is optional while seshat isn't.

pkgs/applications/networking/instant-messengers/element/seshat/default.nix renamed to pkgs/by-name/el/element-desktop/seshat/default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
stdenv,
44
rustPlatform,
55
fetchFromGitHub,
6-
rust,
76
sqlcipher,
87
nodejs,
98
python3,
109
yarn,
1110
fixup-yarn-lock,
12-
CoreServices,
1311
fetchYarnDeps,
1412
removeReferencesTo,
1513
}:
@@ -37,7 +35,7 @@ rustPlatform.buildRustPackage rec {
3735
yarn
3836
fixup-yarn-lock
3937
];
40-
buildInputs = [ sqlcipher ] ++ lib.optional stdenv.hostPlatform.isDarwin CoreServices;
38+
buildInputs = [ sqlcipher ];
4139

4240
npm_config_nodedir = nodejs;
4341

pkgs/applications/networking/instant-messengers/element/seshat/pin.json renamed to pkgs/by-name/el/element-desktop/seshat/pin.json

File renamed without changes.

pkgs/applications/networking/instant-messengers/element/seshat/update.sh renamed to pkgs/by-name/el/element-desktop/seshat/update.sh

File renamed without changes.

0 commit comments

Comments
 (0)