Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 check, 7 cppunit, 8 perl, 9 python3Packages, 10}: 11 12# NOTE: for subunit python library see pkgs/top-level/python-packages.nix 13 14stdenv.mkDerivation rec { 15 pname = "subunit"; 16 version = "1.4.2"; 17 18 src = fetchurl { 19 url = "https://launchpad.net/subunit/trunk/${version}/+download/${pname}-${version}.tar.gz"; 20 hash = "sha256-hlOOv6kIC97w7ICVsuXeWrsUbVu3tCSzEVKUHXYG2dI="; 21 }; 22 23 nativeBuildInputs = [ pkg-config ]; 24 buildInputs = [ 25 check 26 cppunit 27 perl 28 python3Packages.wrapPython 29 ]; 30 31 propagatedBuildInputs = with python3Packages; [ 32 testtools 33 testscenarios 34 ]; 35 36 postFixup = "wrapPythonPrograms"; 37 38 meta = with lib; { 39 description = "Streaming protocol for test results"; 40 mainProgram = "subunit-diff"; 41 homepage = "https://launchpad.net/subunit"; 42 license = licenses.asl20; 43 platforms = platforms.all; 44 }; 45}