tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
stag: fixup build on aarch64-linux
Kirill Radzikhovskyy
2 years ago
2281a4b8
979b4232
+14
-7
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
stag
default.nix
+14
-7
pkgs/applications/misc/stag/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, curses }:
1
1
+
{ lib, stdenv, fetchFromGitHub, curses, fetchpatch }:
2
2
3
3
-
stdenv.mkDerivation {
3
3
+
stdenv.mkDerivation (finalAttrs: {
4
4
pname = "stag";
5
5
-
version = "1.0";
5
5
+
version = "1.0.0";
6
6
7
7
src = fetchFromGitHub {
8
8
owner = "seenaburns";
9
9
repo = "stag";
10
10
-
rev = "90e2964959ea8242349250640d24cee3d1966ad6";
11
11
-
sha256 = "1yrzjhcwrxrxq5jj695wvpgb0pz047m88yq5n5ymkcw5qr78fy1v";
10
10
+
rev = "v${finalAttrs.version}";
11
11
+
hash = "sha256-O3iHTsaFs1l9sQV7hOoh4F+w3t28JCNlwT33zBmUP/s=";
12
12
};
13
13
14
14
+
patches = [
15
15
+
# fix compilation on aarch64 https://github.com/seenaburns/stag/pull/19
16
16
+
(fetchpatch {
17
17
+
url = "https://github.com/seenaburns/stag/commit/0a5a8533d0027b2ee38d109adb0cb7d65d171497.diff";
18
18
+
hash = "sha256-fqcsStduL3qfsp5wLJ0GLfEz0JRnOqsvpXB4gdWwVzg=";
19
19
+
})
20
20
+
];
21
21
+
14
22
buildInputs = [ curses ];
15
23
16
24
installPhase = ''
···
18
26
'';
19
27
20
28
meta = with lib; {
21
21
-
broken = (stdenv.isLinux && stdenv.isAarch64);
22
29
homepage = "https://github.com/seenaburns/stag";
23
30
description = "Terminal streaming bar graph passed through stdin";
24
31
license = licenses.bsdOriginal;
25
32
maintainers = with maintainers; [ matthiasbeyer ];
26
33
platforms = platforms.unix;
27
34
};
28
28
-
}
35
35
+
})