Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 911 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 meson, 6 ninja, 7 pkg-config, 8 python3, 9}: 10stdenv.mkDerivation (final: { 11 name = "termpaint"; 12 version = "0.3.1"; 13 14 src = fetchFromGitHub { 15 owner = "termpaint"; 16 repo = "termpaint"; 17 rev = final.version; 18 hash = "sha256-7mfGTC5vJ4806bDbrPMSVthtW05a+M3vgUlHGbtaI4Q="; 19 }; 20 21 patches = [ ./0001-meson.build-use-prefix.patch ]; 22 23 nativeBuildInputs = [ 24 meson 25 ninja 26 pkg-config 27 python3 28 ]; 29 30 mesonFlags = [ 31 "-Dttyrescue-fexec-blob=false" 32 "-Dtools-path=libexec/" 33 "-Dttyrescue-path=libexec/" 34 "-Dttyrescue-install=true" 35 ]; 36 37 doCheck = true; 38 39 meta = { 40 description = "Low level terminal interface library"; 41 homepage = "https://github.com/termpaint/termpaint"; 42 platforms = lib.platforms.unix; 43 license = lib.licenses.boost; 44 maintainers = with lib.maintainers; [ 45 istoph 46 textshell 47 ]; 48 }; 49})