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
-
{ lib, stdenv, fetchFromGitHub, curses }:
2
3
-
stdenv.mkDerivation {
4
pname = "stag";
5
-
version = "1.0";
6
7
src = fetchFromGitHub {
8
owner = "seenaburns";
9
repo = "stag";
10
-
rev = "90e2964959ea8242349250640d24cee3d1966ad6";
11
-
sha256 = "1yrzjhcwrxrxq5jj695wvpgb0pz047m88yq5n5ymkcw5qr78fy1v";
12
};
13
0
0
0
0
0
0
0
0
14
buildInputs = [ curses ];
15
16
installPhase = ''
···
18
'';
19
20
meta = with lib; {
21
-
broken = (stdenv.isLinux && stdenv.isAarch64);
22
homepage = "https://github.com/seenaburns/stag";
23
description = "Terminal streaming bar graph passed through stdin";
24
license = licenses.bsdOriginal;
25
maintainers = with maintainers; [ matthiasbeyer ];
26
platforms = platforms.unix;
27
};
28
-
}
···
1
+
{ lib, stdenv, fetchFromGitHub, curses, fetchpatch }:
2
3
+
stdenv.mkDerivation (finalAttrs: {
4
pname = "stag";
5
+
version = "1.0.0";
6
7
src = fetchFromGitHub {
8
owner = "seenaburns";
9
repo = "stag";
10
+
rev = "v${finalAttrs.version}";
11
+
hash = "sha256-O3iHTsaFs1l9sQV7hOoh4F+w3t28JCNlwT33zBmUP/s=";
12
};
13
14
+
patches = [
15
+
# fix compilation on aarch64 https://github.com/seenaburns/stag/pull/19
16
+
(fetchpatch {
17
+
url = "https://github.com/seenaburns/stag/commit/0a5a8533d0027b2ee38d109adb0cb7d65d171497.diff";
18
+
hash = "sha256-fqcsStduL3qfsp5wLJ0GLfEz0JRnOqsvpXB4gdWwVzg=";
19
+
})
20
+
];
21
+
22
buildInputs = [ curses ];
23
24
installPhase = ''
···
26
'';
27
28
meta = with lib; {
0
29
homepage = "https://github.com/seenaburns/stag";
30
description = "Terminal streaming bar graph passed through stdin";
31
license = licenses.bsdOriginal;
32
maintainers = with maintainers; [ matthiasbeyer ];
33
platforms = platforms.unix;
34
};
35
+
})