Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 56 lines 984 B view raw
1{ lib 2, stdenv 3, fetchFromSourcehut 4, audit 5, pkg-config 6, libcap 7, gperf 8, meson 9, ninja 10, python3 11, getent 12}: 13 14stdenv.mkDerivation (finalAttrs: { 15 pname = "basu"; 16 version = "0.2.1"; 17 18 src = fetchFromSourcehut { 19 owner = "~emersion"; 20 repo = "basu"; 21 rev = "v${finalAttrs.version}"; 22 hash = "sha256-zIaEIIo8lJeas2gVjMezO2hr8RnMIT7iiCBilZx5lRQ="; 23 }; 24 25 outputs = [ "out" "dev" "lib" ]; 26 27 buildInputs = [ 28 audit 29 gperf 30 libcap 31 ]; 32 33 nativeBuildInputs = [ 34 pkg-config 35 meson 36 ninja 37 python3 38 getent 39 ]; 40 41 preConfigure = '' 42 pushd src/basic 43 patchShebangs \ 44 generate-cap-list.sh generate-errno-list.sh generate-gperfs.py 45 popd 46 ''; 47 48 meta = { 49 homepage = "https://sr.ht/~emersion/basu"; 50 description = "Sd-bus library, extracted from systemd"; 51 mainProgram = "basuctl"; 52 license = lib.licenses.lgpl21Only; 53 maintainers = with lib.maintainers; [ AndersonTorres ]; 54 platforms = lib.platforms.linux; 55 }; 56})