11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
17 repo = finalAttrs.pname;
18 rev = finalAttrs.version;
19 sha256 = "sha256-oUy9HhybNMjRBWoqqal1Mw8cC5RddgN4izxAl0cgnKE=";
22 nativeBuildInputs = [ meson ninja ];
25 substituteInPlace varlink-wrapper.py \
26 --replace "/usr/bin/env python3" "${python3}/bin/python3"
28 # test-object: ../lib/test-object.c:129: main: Assertion `setlocale(LC_NUMERIC, "de_DE.UTF-8") != 0' failed.
29 # PR that added it https://github.com/varlink/libvarlink/pull/27
30 substituteInPlace lib/test-object.c \
31 --replace 'assert(setlocale(LC_NUMERIC, "de_DE.UTF-8") != 0);' ""
33 patchShebangs lib/test-symbols.sh
39 updateScript = nix-update-script {
40 attrPath = finalAttrs.pname;
43 version = testers.testVersion {
44 package = finalAttrs.finalPackage;
45 command = "varlink --version";
51 description = "C implementation of the Varlink protocol and command line tool";
52 homepage = "https://github.com/varlink/libvarlink";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ artturin ];
55 platforms = platforms.linux;