about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/linux-logo/default.nix
blob: a37f25c17d0a126de2639d0f205872d9955df01d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, stdenv
, fetchFromGitHub
, gettext
, which
, nix-update-script
}:

stdenv.mkDerivation rec {
  pname = "linux_logo";
  version = "6.0";

  src = fetchFromGitHub {
    owner = "deater";
    repo = pname;
    rev = version;
    sha256 = "sha256-q8QznEgnALJS//l7XXHZlq07pI2jCCm2USEU96rO8N0=";
  };

  nativeBuildInputs = [ gettext which ];

  passthru.updateScript = nix-update-script {
    attrPath = pname;
  };

  meta = with lib; {
    description = "Prints an ASCII logo and some system info";
    homepage = "http://www.deater.net/weave/vmwprod/linux_logo";
    changelog = "https://github.com/deater/linux_logo/blob/${version}/CHANGES_IN_${version}";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ azahi ];
    platforms = platforms.linux;
  };
}