lol
at 24.11-pre 52 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchFromGitLab 4, fetchpatch 5, meson 6, ninja 7, pkg-config 8}: 9 10stdenv.mkDerivation rec { 11 pname = "zix"; 12 version = "0.4.2"; 13 14 src = fetchFromGitLab { 15 owner = "drobilla"; 16 repo = pname; 17 rev = "v${version}"; 18 hash = "sha256-nMm3Mdqc4ncCae8SoyGxZYURzmXLNcp1GjsSExfB6x4="; 19 }; 20 21 patches = [ 22 # clang-16 support on Darwin: 23 # https://gitlab.com/drobilla/zix/-/issues/3 24 (fetchpatch { 25 name = "darwin-sync.patch"; 26 url = "https://gitlab.com/drobilla/zix/-/commit/a6f804073de1f1e626464a9dd0a169fd3f69fdff.patch"; 27 hash = "sha256-ZkDPjtUzIyqnYarQR+7aCj7S/gSngbd6d75aRT+h7Ww="; 28 }) 29 ]; 30 31 nativeBuildInputs = [ 32 meson 33 ninja 34 pkg-config 35 ]; 36 37 mesonFlags = [ 38 "-Dbenchmarks=disabled" 39 "-Ddocs=disabled" 40 ]; 41 42 doCheck = true; 43 44 meta = with lib; { 45 description = "A lightweight C99 portability and data structure library"; 46 homepage = "https://gitlab.com/drobilla/zix"; 47 changelog = "https://gitlab.com/drobilla/zix/-/blob/${src.rev}/NEWS"; 48 license = licenses.isc; 49 platforms = platforms.unix; 50 maintainers = with maintainers; [ yuu ]; 51 }; 52}