btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / su / sudo-font / package.nix
blob21a447adc82189c21b94b3bf94a043a9355b05cd
1 { lib, stdenvNoCC, fetchzip }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "sudo-font";
5   version = "2.0.0";
7   src = fetchzip {
8     url = "https://github.com/jenskutilek/sudo-font/releases/download/v${version}/sudo.zip";
9     hash = "sha256-WjhNWwAeb6f7tlvXMr6Q7mtNnaWbHSnBtXK6Ba3YOW4=";
10   };
12   installPhase = ''
13     runHook preInstall
15     install -Dm644 *.ttf -t $out/share/fonts/truetype/
17     runHook postInstall
18   '';
20   meta = with lib; {
21     description = "Font for programmers and command line users";
22     homepage = "https://www.kutilek.de/sudo-font/";
23     changelog = "https://github.com/jenskutilek/sudo-font/raw/v${version}/sudo/FONTLOG.txt";
24     license = licenses.ofl;
25     maintainers = [ ];
26     platforms = platforms.all;
27   };