python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / cpufetch / default.nix
blob1407f875b21b23555fdc9a28f7cf58e1678f0c17
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , installShellFiles
5 }:
7 stdenv.mkDerivation rec {
8   pname = "cpufetch";
9   version = "1.02";
11   src = fetchFromGitHub {
12     owner = "Dr-Noob";
13     repo = "cpufetch";
14     rev = "v${version}";
15     sha256 = "sha256-bhw7+z4/50MrC5WyexHhtzmqnovwiA9X6Q2TcznDYZM=";
16   };
18   nativeBuildInputs = [
19     installShellFiles
20   ];
22   installPhase = ''
23     runHook preInstall
25     mkdir $out
26     install -Dm755 cpufetch   $out/bin/cpufetch
27     install -Dm644 LICENSE    $out/share/licenses/cpufetch/LICENSE
28     installManPage cpufetch.1
30     runHook postInstall
31   '';
33   meta = with lib; {
34     description = "Simplistic yet fancy CPU architecture fetching tool";
35     license = licenses.gpl2Only;
36     homepage = "https://github.com/Dr-Noob/cpufetch";
37     changelog = "https://github.com/Dr-Noob/cpufetch/releases/tag/v${version}";
38     maintainers = with maintainers; [ devhell ];
39   };