tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
arandr: make reproducible by setting mtime=0
TessyJames28
9 months ago
0059372a
b7ba7f9f
+25
-3
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
ar
arandr
gzip-timestamp-fix.patch
package.nix
+15
pkgs/by-name/ar/arandr/gzip-timestamp-fix.patch
···
1
1
+
--- setup.py 2025-04-01 11:24:54.530984662 +0000
2
2
+
+++ setup.py 2025-04-01 13:54:46.961341548 +0000
3
3
+
4
4
+
@@ -111,9 +111,11 @@
5
5
+
info('compressing man page to %s', gzfile)
6
6
+
7
7
+
if not self.dry_run:
8
8
+
- compressed = gzip.open(gzfile, 'w', 9)
9
9
+
- compressed.write(manpage)
10
10
+
- compressed.close()
11
11
+
+ with open(gzfile, 'wb') as file:
12
12
+
+ with gzip.GzipFile(fileobj=file, mode='wb', filename='', mtime=0, compresslevel=9) as compressed:
13
13
+
+ compressed.write(manpage)
14
14
+
+ compressed.close()
15
15
+
+ file.close()
+10
-3
pkgs/by-name/ar/arandr/package.nix
···
1
1
{
2
2
lib,
3
3
fetchurl,
4
4
+
fetchFromGitLab,
4
5
python3Packages,
5
6
gobject-introspection,
6
7
gsettings-desktop-schemas,
···
16
17
pname = "arandr";
17
18
version = "0.1.11";
18
19
19
19
-
src = fetchurl {
20
20
-
url = "https://christian.amsuess.com/tools/arandr/files/${pname}-${version}.tar.gz";
21
21
-
hash = "sha256-5Mu+Npi7gSs5V3CHAXS+AJS7rrOREFqBH5X0LrGCrgI=";
20
20
+
src = fetchFromGitLab {
21
21
+
owner = "arandr";
22
22
+
repo = "arandr";
23
23
+
tag = version;
24
24
+
hash = "sha256-nQtfOKAnWKsy2DmvtRGJa4+Y9uGgX41BeHpd9m4d9YA=";
22
25
};
26
26
+
27
27
+
# patch to set mtime=0 on setup.py
28
28
+
patches = [ ./gzip-timestamp-fix.patch ];
29
29
+
patchFlags = [ "-p0" ];
23
30
24
31
preBuild = ''
25
32
rm -rf data/po/*