btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / rh / rhodium-libre / package.nix
blob114061db1b239b67926e5478c880e64d0f141701
1 { lib, stdenvNoCC, fetchFromGitHub }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "RhodiumLibre";
5   version = "1.2.0";
7   src = fetchFromGitHub {
8     owner = "DunwichType";
9     repo = pname;
10     rev = version;
11     hash = "sha256-YCQvUdjEAj4G71WCRCM0+NwiqRqwt1Ggeg9jb/oWEsY=";
12   };
14   installPhase = ''
15     runHook preInstall
17     install -Dm444 -t $out/share/fonts/opentype/ RhodiumLibre-Regular.otf
18     install -Dm444 -t $out/share/fonts/truetype/ RhodiumLibre-Regular.ttf
20     runHook postInstall
21   '';
23   meta = with lib; {
24     description = "F/OSS/Libre font for Latin and Devanagari";
25     homepage = "https://github.com/DunwichType/RhodiumLibre";
26     license = licenses.ofl;
27     platforms = platforms.all;
28     maintainers = [ ];
29   };