incus: fix container tests from image rename (#360305)
[NixPkgs.git] / pkgs / by-name / so / source-code-pro / package.nix
blob4d3f5155929be1d74c5a84deb2a8857902074bd0
1 { lib, stdenvNoCC, fetchzip }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "source-code-pro";
5   version = "2.042";
7   src = fetchzip {
8     url = "https://github.com/adobe-fonts/source-code-pro/releases/download/${version}R-u%2F1.062R-i%2F1.026R-vf/OTF-source-code-pro-${version}R-u_1.062R-i.zip";
9     stripRoot = false;
10     hash = "sha256-+BnfmD+AjObSoVxPvFAqbnMD2j5qf2YmbXGQtXoaiy0=";
11   };
13   installPhase = ''
14     runHook preInstall
16     install -Dm644 OTF/*.otf -t $out/share/fonts/opentype
18     runHook postInstall
19   '';
21   meta = {
22     description = "Monospaced font family for user interface and coding environments";
23     maintainers = with lib.maintainers; [ relrod ];
24     platforms = with lib.platforms; all;
25     homepage = "https://adobe-fonts.github.io/source-code-pro/";
26     license = lib.licenses.ofl;
27   };