nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchgit, 5 pkg-config, 6 freetype, 7 wafHook, 8 python3, 9 libXmu, 10 glew, 11 ucs-fonts, 12 nixosTests, 13}: 14stdenv.mkDerivation (finalAttrs: { 15 pname = "zutty"; 16 version = "0.16-unstable-2024-08-18"; 17 18 src = fetchgit { 19 url = "https://git.hq.sig7.se/zutty.git"; 20 rev = "04b2ca3b3aaa070c41583247f8112c31b6003886"; # 20240818 21 hash = "sha256-izUbn2B3RqIIOW9tuL7DFLqJdektCftxnpQssJMYxC8="; 22 }; 23 24 postPatch = 25 let 26 fontpaths = [ 27 "/run/current-system/sw/share/X11/fonts" # available if fonts.fontDir.enable = true 28 "${ucs-fonts}/share/fonts" 29 ]; 30 in 31 '' 32 substituteInPlace src/options.h \ 33 --replace-fail /usr/share/fonts ${builtins.concatStringsSep ":" fontpaths} 34 ''; 35 36 nativeBuildInputs = [ 37 pkg-config 38 wafHook 39 python3 40 ]; 41 42 buildInputs = [ 43 freetype 44 libXmu 45 glew 46 ]; 47 48 passthru = { 49 tests = lib.optionalAttrs stdenv.hostPlatform.isLinux { 50 default = nixosTests.terminal-emulators.zutty; 51 }; 52 }; 53 54 meta = { 55 homepage = "https://tomscii.sig7.se/zutty/"; 56 description = "X terminal emulator rendering through OpenGL ES Compute Shaders"; 57 license = lib.licenses.gpl3Plus; 58 maintainers = [ lib.maintainers.rolfschr ]; 59 platforms = lib.platforms.linux; 60 }; 61})