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-dec-misc"; 11 version = "1.0.4"; 12 13 src = fetchurl { 14 url = "mirror://xorg/individual/font/font-dec-misc-${finalAttrs.version}.tar.xz"; 15 hash = "sha256-gtloIB2P+L7A5R3M14G7TU6/F+EQBJRCeb3AIB4WGvc="; 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 = "DEC cursors in pcf font format"; 38 homepage = "https://gitlab.freedesktop.org/xorg/font/dec-misc"; 39 license = lib.licenses.hpnd; 40 maintainers = [ ]; 41 platforms = lib.platforms.unix; 42 }; 43})