blob: 28a80052def87fbacc3ccca64957a11e484fc27e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, python3
, nix-update-script
, testers
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libvarlink";
version = "23";
src = fetchFromGitHub {
owner = "varlink";
repo = "libvarlink";
rev = finalAttrs.version;
sha256 = "sha256-oUy9HhybNMjRBWoqqal1Mw8cC5RddgN4izxAl0cgnKE=";
};
nativeBuildInputs = [ meson ninja python3 ];
postPatch = ''
# 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 varlink-wrapper.py
'';
doCheck = true;
passthru = {
updateScript = nix-update-script { };
tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "varlink --version";
};
};
};
meta = with lib; {
description = "C implementation of the Varlink protocol and command line tool";
mainProgram = "varlink";
homepage = "https://github.com/varlink/libvarlink";
license = licenses.asl20;
maintainers = with maintainers; [ artturin ];
platforms = platforms.linux;
};
})
|