nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 bdftopcf, 6 mkfontscale, 7 writeScript, 8}: 9stdenv.mkDerivation (finalAttrs: { 10 pname = "font-sun-misc"; 11 version = "1.0.4"; 12 13 src = fetchurl { 14 url = "mirror://xorg/individual/font/font-sun-misc-${finalAttrs.version}.tar.xz"; 15 hash = "sha256-3YTdEW2Sev+k+g+ilyez7PwPBkI4gXwKHlUqCsOE258="; 16 }; 17 18 strictDeps = true; 19 20 nativeBuildInputs = [ 21 bdftopcf 22 mkfontscale 23 ]; 24 25 passthru = { 26 updateScript = writeScript "update-${finalAttrs.pname}" '' 27 #!/usr/bin/env nix-shell 28 #!nix-shell -i bash -p common-updater-scripts 29 version="$(list-directory-versions --pname ${finalAttrs.pname} \ 30 --url https://xorg.freedesktop.org/releases/individual/font/ \ 31 | sort -V | tail -n1)" 32 update-source-version ${finalAttrs.pname} "$version" 33 ''; 34 }; 35 36 meta = { 37 description = "Open Look Glyph and Cursor pcf fonts"; 38 homepage = "https://gitlab.freedesktop.org/xorg/font/sun-misc/"; 39 license = lib.licenses.mit; 40 maintainers = [ ]; 41 platforms = lib.platforms.unix; 42 }; 43})