Merge pull request #131955 from Artturin/libvarlink-add

libvarlink: init at 22
This commit is contained in:
Artturi 2021-08-06 00:33:18 +03:00 committed by GitHub
commit 439b160522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, python3
}:
stdenv.mkDerivation rec {
pname = "libvarlink";
version = "22";
src = fetchFromGitHub {
owner = "varlink";
repo = pname;
rev = version;
sha256 = "1i15227vlc9k4276r833ndhxrcys9305pf6dga1j0alx2vj85yz2";
};
nativeBuildInputs = [ meson ninja ];
postPatch = ''
substituteInPlace varlink-wrapper.py \
--replace "/usr/bin/env python3" "${python3}/bin/python3"
# test-object: ../lib/test-object.c:129: main: Assertion `setlocale(LC_NUMERIC, "de_DE.UTF-8") != 0' failed.
# PR that added it https://github.com/varlink/libvarlink/pull/27
substituteInPlace lib/test-object.c \
--replace 'assert(setlocale(LC_NUMERIC, "de_DE.UTF-8") != 0);' ""
patchShebangs lib/test-symbols.sh
'';
doCheck = true;
meta = with lib; {
description = "C implementation of the Varlink protocol and command line tool";
homepage = "https://github.com/varlink/libvarlink";
license = licenses.asl20;
maintainers = with maintainers; [ artturin ];
platforms = platforms.linux;
};
}

View File

@ -17415,6 +17415,8 @@ in
libva1 = callPackage ../development/libraries/libva/1.0.0.nix { };
libva1-minimal = libva1.override { minimal = true; };
libvarlink = callPackage ../development/libraries/libvarlink { };
libvdpau = callPackage ../development/libraries/libvdpau { };
libmodulemd = callPackage ../development/libraries/libmodulemd { };