Merge pull request #237881 from kirillrdy/stag

stag: fixup build on aarch64-linux
This commit is contained in:
Sandro 2023-06-17 00:38:21 +02:00 committed by GitHub
commit b258a07a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
};
}
})