···92929393- [Handheld Daemon](https://github.com/hhd-dev/hhd), support for gaming handhelds like the Legion Go, ROG Ally, and GPD Win. Available as [services.handheld-daemon](#opt-services.handheld-daemon.enable).
94949595+- [BenchExec](https://github.com/sosy-lab/benchexec), a framework for reliable benchmarking and resource measurement, available as [programs.benchexec](#opt-programs.benchexec.enable),
9696+ As well as related programs
9797+ [CPU Energy Meter](https://github.com/sosy-lab/cpu-energy-meter), available as [programs.cpu-energy-meter](#opt-programs.cpu-energy-meter.enable), and
9898+ [PQoS Wrapper](https://gitlab.com/sosy-lab/software/pqos-wrapper), available as [programs.pqos-wrapper](#opt-programs.pqos-wrapper.enable).
9999+95100- [Guix](https://guix.gnu.org), a functional package manager inspired by Nix. Available as [services.guix](#opt-services.guix.enable).
9610197102- [PhotonVision](https://photonvision.org/), a free, fast, and easy-to-use computer vision solution for the FIRST® Robotics Competition.
···11+{ lib
22+, fetchFromGitHub
33+, python3
44+, libseccomp
55+, nixosTests
66+, testers
77+, benchexec
88+}:
99+python3.pkgs.buildPythonApplication rec {
1010+ pname = "benchexec";
1111+ version = "3.21";
1212+1313+ src = fetchFromGitHub {
1414+ owner = "sosy-lab";
1515+ repo = "benchexec";
1616+ rev = version;
1717+ hash = "sha256-bE3brmmLHZQakDKvd47I1hm9Dcsu6DrSeJyjWWtEZWI=";
1818+ };
1919+2020+ pyproject = true;
2121+2222+ nativeBuildInputs = with python3.pkgs; [ setuptools ];
2323+2424+ # NOTE: CPU Energy Meter is not added,
2525+ # because BenchExec should call the wrapper configured
2626+ # via `security.wrappers.cpu-energy-meter`
2727+ # in `programs.cpu-energy-meter`, which will have the required
2828+ # capabilities to access MSR.
2929+ # If we add `cpu-energy-meter` here, BenchExec will instead call an executable
3030+ # without `CAP_SYS_RAWIO` and fail.
3131+ propagatedBuildInputs = with python3.pkgs; [
3232+ coloredlogs
3333+ lxml
3434+ pystemd
3535+ pyyaml
3636+ ];
3737+3838+ makeWrapperArgs = [ "--set-default LIBSECCOMP ${lib.getLib libseccomp}/lib/libseccomp.so" ];
3939+4040+ passthru.tests =
4141+ let
4242+ testVersion = result: testers.testVersion {
4343+ command = "${result} --version";
4444+ package = benchexec;
4545+ };
4646+ in
4747+ {
4848+ nixos = nixosTests.benchexec;
4949+ benchexec-version = testVersion "benchexec";
5050+ runexec-version = testVersion "runexec";
5151+ table-generator-version = testVersion "table-generator";
5252+ containerexec-version = testVersion "containerexec";
5353+ };
5454+5555+ meta = with lib; {
5656+ description = "A Framework for Reliable Benchmarking and Resource Measurement.";
5757+ homepage = "https://github.com/sosy-lab/benchexec";
5858+ maintainers = with maintainers; [ lorenzleutgeb ];
5959+ license = licenses.asl20;
6060+ mainProgram = "benchexec";
6161+ };
6262+}
+3-3
pkgs/by-name/bo/boxbuddy/package.nix
···991010rustPlatform.buildRustPackage rec {
1111 pname = "boxbuddy";
1212- version = "2.2.3";
1212+ version = "2.2.4";
13131414 src = fetchFromGitHub {
1515 owner = "Dvlv";
1616 repo = "BoxBuddyRS";
1717 rev = version;
1818- hash = "sha256-b7b5IWo2REr0HBfsKbnFYcReEQG5SfuGDa9KSKIC3t0=";
1818+ hash = "sha256-1a9rSVP40+ZKp21BJLO+6HGDf1m6dROqGyTkql58iA4=";
1919 };
20202121- cargoHash = "sha256-h+pDjS+VtvfiaWMQjpFHBBJ/8bZ0SRgayRmx4vg96Jw=";
2121+ cargoHash = "sha256-Y89TkqjTmaYnFsQmg48FSPMFoUL7Wbgb2xh60boILdQ=";
22222323 # The software assumes it is installed either in flatpak or in the home directory
2424 # so the xdg data path needs to be patched here
···2121 setuptools
2222 ];
23232424- pythonImportsCheck = [ "png" ];
2424+ patches = [
2525+ # pngsuite is imported by code/test_png.py but is not defined in
2626+ # setup.cfg, so it isn't built - this adds it to py_modules
2727+ ./setup-cfg-pngsuite.patch
2828+ ];
2929+3030+ # allow tests to use the binaries produced by this package
3131+ preCheck = ''
3232+ export PATH="$out/bin:$PATH"
3333+ '';
3434+3535+ pythonImportsCheck = [ "png" "pngsuite" ];
25362637 nativeCheckInputs = [ pytestCheckHook ];
2738