···40 # so this removes 1) the popup about it when you first start the program, 2) the option in the settings
41 # and makes the program always know that it is set up
42 ./remove-urlscheme-settings.patch
00043 ];
44 postPatch = ''
45 # oslib doesn't seem to do releases and hasn't had a change since 2021, so always use commit d6ee6549bb
···70 ];
7172 gradleBuildTask = "application:jpackage";
73-74- env = {
75- # The source no longer contains this, so this has been extracted from the binary releases
76- SENTRY_DSN = "https://1aacf97280717f749dfc93a1713f9551@o4507814449774592.ingest.de.sentry.io/4507814504759376";
77- };
7879 installPhase = ''
80 runHook preInstall
···40 # so this removes 1) the popup about it when you first start the program, 2) the option in the settings
41 # and makes the program always know that it is set up
42 ./remove-urlscheme-settings.patch
43+44+ # Upstream requested that sentry is only to be used with official builds, remove it so it doesn't complain about the lack of DSN
45+ ./remove-sentry.patch
46 ];
47 postPatch = ''
48 # oslib doesn't seem to do releases and hasn't had a change since 2021, so always use commit d6ee6549bb
···73 ];
7475 gradleBuildTask = "application:jpackage";
000007677 installPhase = ''
78 runHook preInstall
···1---- a/ctdb/wscript 2019-01-15 02:07:00.000000000 -0800
2-+++ b/ctdb/wscript 2019-01-20 20:21:08.800187459 -0800
3-@@ -814,7 +814,7 @@
004 for t in etc_subdirs:
5 files = SUBDIR_MODE('%s/%s' % (configdir, t), trim_path=configdir)
6 for fmode in files:
···9 destname=fmode[0], chmod=fmode[1])
1011 # If this is a direct install and there are no event scripts
12-@@ -852,24 +852,20 @@
13 ]
1415 for t in etc_scripts:
···17+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % t,
18 destname=t, chmod=MODE_755)
1920- bld.SAMBA_GENERATOR('ctdb-sudoers',
21- source='config/ctdb.sudoers',
22- target='ctdb.sudoers',
23- rule='sed %s ${SRC} > ${TGT}' % (sed_cmdline))
24-- bld.INSTALL_FILES('${SYSCONFDIR}/sudoers.d', 'ctdb.sudoers',
25-+ bld.INSTALL_FILES('${EXEC_PREFIX}${SYSCONFDIR}/sudoers.d', 'ctdb.sudoers',
26- destname='ctdb')
27-28- bld.INSTALL_FILES('${CTDB_ETCDIR}/events/notification',
29-+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}/events/notification',
30 'config/notification.README',
31 destname='README')
32
···1+diff --git a/ctdb/wscript b/ctdb/wscript
2+index e9cd89436a3..893b9a4c59e 100644
3+--- a/ctdb/wscript
4++++ b/ctdb/wscript
5+@@ -862,7 +862,7 @@ def build(bld):
6 for t in etc_subdirs:
7 files = SUBDIR_MODE('%s/%s' % (configdir, t), trim_path=configdir)
8 for fmode in files:
···11 destname=fmode[0], chmod=fmode[1])
1213 # If this is a direct install and there are no event scripts
14+@@ -901,17 +901,13 @@ def build(bld):
15 ]
1617 for t in etc_scripts:
···19+ bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % t,
20 destname=t, chmod=MODE_755)
210000000022- bld.INSTALL_FILES('${CTDB_ETCDIR}/events/notification',
23++ bld.INSTALL_FILES('${EXEC_PREFIX}$${CTDB_ETCDIR}/events/notification',
24 'config/notification.README',
25 destname='README')
26
···13 libtool,
14 libpng,
15 nasm,
16- cmake,
17 pkg-config,
18 stdenv,
19- srcOnly,
20 server-mode ? true,
21}:
2223let
24 pname = "pgadmin";
25- version = "9.5";
26- yarnHash = "sha256-i3WCEpcZepB7K0A4QgjoLfkO7icew/8usJCo4DkWT6I=";
2728 src = fetchFromGitHub {
29 owner = "pgadmin-org";
30 repo = "pgadmin4";
31 rev = "REL-${lib.versions.major version}_${lib.versions.minor version}";
32- hash = "sha256-5FwYkdhpg/2Cidi2qiFhhsQYbIwsp80K3MNxw5rp4ww=";
33- };
34-35- mozjpeg-bin = fetchFromGitHub {
36- owner = "imagemin";
37- repo = "mozjpeg-bin";
38- rev = "c0587fbc00b21ed8cad8bae499a0827baeaf7ffa";
39- hash = "sha256-D/pXQBlIIyk7KAgxJ1gKqxYxtlfBbLzUSmYZbH659cA=";
40 };
4142 # keep the scope, as it is used throughout the derivation and tests
···5859pythonPackages.buildPythonApplication rec {
60 inherit pname version src;
06162 offlineCache = yarn-berry_4.fetchYarnBerryDeps {
63- # mozjpeg fails to build on darwin due to a hardocded path
64- # this has been fixed upstream on master but no new version
65- # has been released. We therefore point yarn to upstream
66- # see https://github.com/imagemin/mozjpeg-bin/issues/64
67- # and https://github.com/imagemin/mozjpeg-bin/issues/81
68- patches = [
69- ./mozjpeg.patch
70- ];
71 src = src + "/web";
72 hash = yarnHash;
73 };
···85 ];
8687 postPatch = ''
88- # the patch needs to be executed inside the /web subfolder
89- # therefore it is included here and not in `patches`
90- cd web
91- patch -u yarn.lock ${./mozjpeg.patch}
92- cd ..
93 # patching Makefile, so it doesn't try to build sphinx documentation here
94 # (will do so later)
95 substituteInPlace Makefile \
···111 '';
112113 dontYarnBerryInstallDeps = true;
114- env.YARN_ENABLE_SCRIPTS = "0";
115- dontUseCmakeConfigure = true;
116-117 preBuild = ''
118 # Adapted from pkg/pip/build.sh
119 echo Creating required directories...
···141 export LD=$CC # https://github.com/imagemin/optipng-bin/issues/108
142 yarnBerryConfigHook
143 )
144- # mozjpeg vendored source isn't included in the checkout for yarn. If we copy it before the
145- # yarnConfigHook it will just get overwritten. So we first run the configHook without build,
146- # then copy the vendored source and then build the dependencies
147- # This has the disadvantage of repeating some of the yarnConfigHooks logic here
148- mkdir -p node_modules/mozjpeg/vendor/source
149- cp ${mozjpeg-bin}/vendor/source/mozjpeg.tar.gz node_modules/mozjpeg/vendor/source/
150- (
151- # https://github.com/mozilla/mozjpeg/issues/438
152- substituteInPlace node_modules/mozjpeg/lib/install.js --replace-fail "cmake -DCMAKE" "cmake -DENABLE_STATIC=FALSE -DCMAKE"
153- substituteInPlace node_modules/mozjpeg/lib/install.js --replace-fail "cp cjpeg-static" "cp cjpeg"
154- export LD=$CC
155- export HOME=$(mktemp -d)
156- export YARN_ENABLE_SCRIPTS=1
157- YARN_IGNORE_PATH=1 ${yarn-berry_4.yarn-berry-offline}/bin/yarn config set enableTelemetry false
158- YARN_IGNORE_PATH=1 ${yarn-berry_4.yarn-berry-offline}/bin/yarn config set enableGlobalCache false
159- export npm_config_nodedir="${srcOnly nodejs}"
160- export npm_config_node_gyp="${nodejs}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
161- YARN_IGNORE_PATH=1 ${yarn-berry_4.yarn-berry-offline}/bin/yarn install --inline-builds
162- )
163 yarn webpacker
164 cp -r * ../pip-build/pgadmin4
165 # save some disk space
···188 yarn-berry_4
189 yarn-berry_4.yarnBerryConfigHook
190 nodejs
191-192- # for building mozjpeg2
193- cmake
194- autoconf
195- automake
196- libtool
197- nasm
198- pkg-config
199 ];
200201 buildInputs = [
202 zlib
203 pythonPackages.wheel
204- # for mozjpeg2
205- libpng
206 ];
207208 propagatedBuildInputs = with pythonPackages; [
···13 libtool,
14 libpng,
15 nasm,
016 pkg-config,
17 stdenv,
018 server-mode ? true,
19}:
2021let
22 pname = "pgadmin";
23+ version = "9.6";
24+ yarnHash = "sha256-G3iG11nPEtco7FJe1H4s85tMpHqmUgPbj68gADBqDfY=";
2526 src = fetchFromGitHub {
27 owner = "pgadmin-org";
28 repo = "pgadmin4";
29 rev = "REL-${lib.versions.major version}_${lib.versions.minor version}";
30+ hash = "sha256-9WYyfioDb2eDf4oeMQ0kF/NUOuwki5gVZjlmels/+1g=";
000000031 };
3233 # keep the scope, as it is used throughout the derivation and tests
···4950pythonPackages.buildPythonApplication rec {
51 inherit pname version src;
52+ missingHashes = ./missing-hashes.json;
5354 offlineCache = yarn-berry_4.fetchYarnBerryDeps {
55+ inherit missingHashes;
000000056 src = src + "/web";
57 hash = yarnHash;
58 };
···70 ];
7172 postPatch = ''
0000073 # patching Makefile, so it doesn't try to build sphinx documentation here
74 # (will do so later)
75 substituteInPlace Makefile \
···91 '';
9293 dontYarnBerryInstallDeps = true;
00094 preBuild = ''
95 # Adapted from pkg/pip/build.sh
96 echo Creating required directories...
···118 export LD=$CC # https://github.com/imagemin/optipng-bin/issues/108
119 yarnBerryConfigHook
120 )
0000000000000000000121 yarn webpacker
122 cp -r * ../pip-build/pgadmin4
123 # save some disk space
···146 yarn-berry_4
147 yarn-berry_4.yarnBerryConfigHook
148 nodejs
00000000149 ];
150151 buildInputs = [
152 zlib
153 pythonPackages.wheel
00154 ];
155156 propagatedBuildInputs = with pythonPackages; [
···41wget -c $url
42tar -xzf "pgadmin4-$newest_version.tar.gz"
43cd "pgadmin4-$newest_version/web"
44-patch -u yarn.lock ${scriptDir}/mozjpeg.patch
4546printf "Will now generate the hash. This will download the packages to the nix store and also take some time\n"
47-yarn-berry-fetcher missing-hashes yarn.lock
48-if [[ -f missing-hashes.json ]]; then
49 YARN_HASH=$(yarn-berry-fetcher prefetch yarn.lock missing-hashes.json)
50else
51 YARN_HASH=$(yarn-berry-fetcher prefetch yarn.lock)
···41wget -c $url
42tar -xzf "pgadmin4-$newest_version.tar.gz"
43cd "pgadmin4-$newest_version/web"
04445printf "Will now generate the hash. This will download the packages to the nix store and also take some time\n"
46+yarn-berry-fetcher missing-hashes yarn.lock > missing-hashes.json
47+if [[ $(wc -l <missing-hashes.json) -ge 2 ]]; then
48 YARN_HASH=$(yarn-berry-fetcher prefetch yarn.lock missing-hashes.json)
49else
50 YARN_HASH=$(yarn-berry-fetcher prefetch yarn.lock)
+1
pkgs/top-level/python-aliases.nix
···323 guzzle_sphinx_theme = guzzle-sphinx-theme; # added 2023-10-16
324 ha-av = throw "ha-av was removed, because it is no longer maintained"; # added 2022-04-06
325 HAP-python = hap-python; # added 2021-06-01
0326 hangups = throw "hangups was removed because Google Hangouts has been shut down"; # added 2023-02-13
327 hbmqtt = throw "hbmqtt was removed because it is no longer maintained"; # added 2021-11-07
328 hcs_utils = hcs-utils; # added 2024-01-06
···323 guzzle_sphinx_theme = guzzle-sphinx-theme; # added 2023-10-16
324 ha-av = throw "ha-av was removed, because it is no longer maintained"; # added 2022-04-06
325 HAP-python = hap-python; # added 2021-06-01
326+ hahomematic = throw "hahomematic has been superseded by aiohomematic"; # added 2025-08-16
327 hangups = throw "hangups was removed because Google Hangouts has been shut down"; # added 2023-02-13
328 hbmqtt = throw "hbmqtt was removed because it is no longer maintained"; # added 2021-11-07
329 hcs_utils = hcs-utils; # added 2024-01-06