mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
stag: fixup build on aarch64-linux
This commit is contained in:
parent
979b4232b3
commit
2281a4b884
1 changed files with 14 additions and 7 deletions
|
@ -1,16 +1,24 @@
|
|||
{ lib, stdenv, fetchFromGitHub, curses }:
|
||||
{ lib, stdenv, fetchFromGitHub, curses, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "stag";
|
||||
version = "1.0";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "seenaburns";
|
||||
repo = "stag";
|
||||
rev = "90e2964959ea8242349250640d24cee3d1966ad6";
|
||||
sha256 = "1yrzjhcwrxrxq5jj695wvpgb0pz047m88yq5n5ymkcw5qr78fy1v";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-O3iHTsaFs1l9sQV7hOoh4F+w3t28JCNlwT33zBmUP/s=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fix compilation on aarch64 https://github.com/seenaburns/stag/pull/19
|
||||
(fetchpatch {
|
||||
url = "https://github.com/seenaburns/stag/commit/0a5a8533d0027b2ee38d109adb0cb7d65d171497.diff";
|
||||
hash = "sha256-fqcsStduL3qfsp5wLJ0GLfEz0JRnOqsvpXB4gdWwVzg=";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ curses ];
|
||||
|
||||
installPhase = ''
|
||||
|
@ -18,11 +26,10 @@ stdenv.mkDerivation {
|
|||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64);
|
||||
homepage = "https://github.com/seenaburns/stag";
|
||||
description = "Terminal streaming bar graph passed through stdin";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ matthiasbeyer ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue