Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 44 lines 818 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 xorg, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "cherry"; 10 version = "1.4"; 11 12 src = fetchFromGitHub { 13 owner = "turquoise-hexagon"; 14 repo = "cherry"; 15 rev = version; 16 sha256 = "13zkxwp6r6kcxv4x459vwscr0n0sik4a3kcz5xnmlpvcdnbxi586"; 17 }; 18 19 nativeBuildInputs = [ 20 xorg.fonttosfnt 21 xorg.mkfontdir 22 ]; 23 24 buildPhase = '' 25 patchShebangs make.sh 26 ./make.sh 27 ''; 28 29 installPhase = '' 30 mkdir -p $out/share/fonts/misc 31 cp *.otb $out/share/fonts/misc 32 33 # create fonts.dir so NixOS xorg module adds to fp 34 mkfontdir $out/share/fonts/misc 35 ''; 36 37 meta = with lib; { 38 description = "cherry font"; 39 homepage = "https://github.com/turquoise-hexagon/cherry"; 40 license = licenses.mit; 41 maintainers = [ ]; 42 platforms = platforms.all; 43 }; 44}