lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 53 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 libfontenc, 7 freetype, 8 xorgproto, 9 zlib, 10 writeScript, 11}: 12stdenv.mkDerivation (finalAttrs: { 13 pname = "mkfontscale"; 14 version = "1.2.3"; 15 16 src = fetchurl { 17 url = "mirror://xorg/individual/app/mkfontscale-${finalAttrs.version}.tar.xz"; 18 hash = "sha256-KSHNw0TxrO4EvNbqHilWXBMIJjAG4TSp7jjPnJ1v514="; 19 }; 20 21 strictDeps = true; 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ 24 libfontenc 25 freetype 26 xorgproto 27 zlib 28 ]; 29 30 passthru = { 31 updateScript = writeScript "update-${finalAttrs.pname}" '' 32 #!/usr/bin/env nix-shell 33 #!nix-shell -i bash -p common-updater-scripts 34 version="$(list-directory-versions --pname ${finalAttrs.pname} \ 35 --url https://xorg.freedesktop.org/releases/individual/app/ \ 36 | sort -V | tail -n1)" 37 update-source-version ${finalAttrs.pname} "$version" 38 ''; 39 }; 40 41 meta = { 42 description = "Utilities to create the fonts.scale and fonts.dir index files used by the legacy X11 font system"; 43 homepage = "https://gitlab.freedesktop.org/xorg/app/mkfontscale"; 44 license = with lib.licenses; [ 45 mit 46 mitOpenGroup 47 hpndSellVariant 48 ]; 49 maintainers = [ ]; 50 mainProgram = "mkfontscale"; 51 platforms = lib.platforms.unix; 52 }; 53})