13 version = "0-unstable-2024-11-01";
16 "out" # xtf-runner and test suite.
17 "doc" # Autogenerated HTML documentation website.
18 "dev" # Development headers.
22 url = "https://xenbits.xenproject.org/git-http/xtf.git";
23 rev = "294532089d5251170abfd65a6620c8247cea729d";
24 hash = "sha256-CQK7300nepZ3bNiHEJ5jrS9wkipr5JUbvtL5DNrULGI=";
28 (with python3Packages; [
37 buildFlags = [ "doxygen" ];
40 "xtfdir=$(out)/share/xtf"
44 # Much like Xen, XTF installs its files to dist/nix/store/*/*,
45 # so we need to copy them to the right place.
47 mkdir -p ''${!outputBin}/share
48 cp -prvd dist/nix/store/*/* ''${!outputBin}
50 # The documentation and development headers aren't in the dist/
51 # folder, so we copy those too.
53 mkdir -p ''${!outputDoc}/share/doc/xtf
54 cp -prvd docs/autogenerated/html ''${!outputDoc}/share/doc/xtf
56 mkdir -p ''${!outputDev}/include
57 cp -prvd include ''${!outputDev}
59 # Wrap xtf-runner, and link it to $out/bin.
60 # This is necessary because the real xtf-runner should
61 # be in the same directory as the tests/ directory.
63 wrapPythonProgramsIn "''${!outputBin}/share/xtf" "''${!outputBin} $pythonPath"
64 mkdir -p ''${!outputBin}/bin
65 ln -s ''${!outputBin}/share/xtf/xtf-runner ''${!outputBin}/bin/xtf-runner
68 passthru.updateScript = unstableGitUpdater { };
71 description = "Xen Test Framework and Suite for creating microkernel-based tests";
72 homepage = "https://xenbits.xenproject.org/docs/xtf/index.html";
73 license = lib.licenses.bsd2;
74 maintainers = lib.teams.xen.members;
75 mainProgram = "xtf-runner";
76 platforms = lib.lists.intersectLists lib.platforms.linux lib.platforms.x86_64;