···9293- [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).
940000095- [Guix](https://guix.gnu.org), a functional package manager inspired by Nix. Available as [services.guix](#opt-services.guix.enable).
9697- [PhotonVision](https://photonvision.org/), a free, fast, and easy-to-use computer vision solution for the FIRST® Robotics Competition.
···9293- [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).
9495+- [BenchExec](https://github.com/sosy-lab/benchexec), a framework for reliable benchmarking and resource measurement, available as [programs.benchexec](#opt-programs.benchexec.enable),
96+ As well as related programs
97+ [CPU Energy Meter](https://github.com/sosy-lab/cpu-energy-meter), available as [programs.cpu-energy-meter](#opt-programs.cpu-energy-meter.enable), and
98+ [PQoS Wrapper](https://gitlab.com/sosy-lab/software/pqos-wrapper), available as [programs.pqos-wrapper](#opt-programs.pqos-wrapper.enable).
99+100- [Guix](https://guix.gnu.org), a functional package manager inspired by Nix. Available as [services.guix](#opt-services.guix.enable).
101102- [PhotonVision](https://photonvision.org/), a free, fast, and easy-to-use computer vision solution for the FIRST® Robotics Competition.
···1+{ lib
2+, fetchFromGitHub
3+, python3
4+, libseccomp
5+, nixosTests
6+, testers
7+, benchexec
8+}:
9+python3.pkgs.buildPythonApplication rec {
10+ pname = "benchexec";
11+ version = "3.21";
12+13+ src = fetchFromGitHub {
14+ owner = "sosy-lab";
15+ repo = "benchexec";
16+ rev = version;
17+ hash = "sha256-bE3brmmLHZQakDKvd47I1hm9Dcsu6DrSeJyjWWtEZWI=";
18+ };
19+20+ pyproject = true;
21+22+ nativeBuildInputs = with python3.pkgs; [ setuptools ];
23+24+ # NOTE: CPU Energy Meter is not added,
25+ # because BenchExec should call the wrapper configured
26+ # via `security.wrappers.cpu-energy-meter`
27+ # in `programs.cpu-energy-meter`, which will have the required
28+ # capabilities to access MSR.
29+ # If we add `cpu-energy-meter` here, BenchExec will instead call an executable
30+ # without `CAP_SYS_RAWIO` and fail.
31+ propagatedBuildInputs = with python3.pkgs; [
32+ coloredlogs
33+ lxml
34+ pystemd
35+ pyyaml
36+ ];
37+38+ makeWrapperArgs = [ "--set-default LIBSECCOMP ${lib.getLib libseccomp}/lib/libseccomp.so" ];
39+40+ passthru.tests =
41+ let
42+ testVersion = result: testers.testVersion {
43+ command = "${result} --version";
44+ package = benchexec;
45+ };
46+ in
47+ {
48+ nixos = nixosTests.benchexec;
49+ benchexec-version = testVersion "benchexec";
50+ runexec-version = testVersion "runexec";
51+ table-generator-version = testVersion "table-generator";
52+ containerexec-version = testVersion "containerexec";
53+ };
54+55+ meta = with lib; {
56+ description = "A Framework for Reliable Benchmarking and Resource Measurement.";
57+ homepage = "https://github.com/sosy-lab/benchexec";
58+ maintainers = with maintainers; [ lorenzleutgeb ];
59+ license = licenses.asl20;
60+ mainProgram = "benchexec";
61+ };
62+}
+3-3
pkgs/by-name/bo/boxbuddy/package.nix
···910rustPlatform.buildRustPackage rec {
11 pname = "boxbuddy";
12- version = "2.2.3";
1314 src = fetchFromGitHub {
15 owner = "Dvlv";
16 repo = "BoxBuddyRS";
17 rev = version;
18- hash = "sha256-b7b5IWo2REr0HBfsKbnFYcReEQG5SfuGDa9KSKIC3t0=";
19 };
2021- cargoHash = "sha256-h+pDjS+VtvfiaWMQjpFHBBJ/8bZ0SRgayRmx4vg96Jw=";
2223 # The software assumes it is installed either in flatpak or in the home directory
24 # so the xdg data path needs to be patched here
···910rustPlatform.buildRustPackage rec {
11 pname = "boxbuddy";
12+ version = "2.2.4";
1314 src = fetchFromGitHub {
15 owner = "Dvlv";
16 repo = "BoxBuddyRS";
17 rev = version;
18+ hash = "sha256-1a9rSVP40+ZKp21BJLO+6HGDf1m6dROqGyTkql58iA4=";
19 };
2021+ cargoHash = "sha256-Y89TkqjTmaYnFsQmg48FSPMFoUL7Wbgb2xh60boILdQ=";
2223 # The software assumes it is installed either in flatpak or in the home directory
24 # so the xdg data path needs to be patched here
···1-{ fetchFromGitHub, lib, stdenv, ffmpeg-headless, cmake, libpng, pkg-config, libjpeg
000000002}:
34stdenv.mkDerivation rec {
5 pname = "ffmpegthumbnailer";
6- version = "unstable-2022-02-18";
78 src = fetchFromGitHub {
9 owner = "dirkvdb";
10 repo = "ffmpegthumbnailer";
11- rev = "3db9fe895b2fa656bb40ddb7a62e27604a688171";
12- sha256 = "0606pbg391l4s8mpyyalm9zrcnm75fwqdlrxy2gif9n21i2fm3rc";
13 };
1415- nativeBuildInputs = [ cmake pkg-config ];
16- buildInputs = [ ffmpeg-headless libpng libjpeg ];
00000000017 cmakeFlags = [ "-DENABLE_THUMBNAILER=ON" ];
1819 # https://github.com/dirkvdb/ffmpegthumbnailer/issues/215
···22 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
23 '';
2425- meta = with lib; {
26- homepage = "https://github.com/dirkvdb/ffmpegthumbnailer";
27 description = "A lightweight video thumbnailer";
28- mainProgram = "ffmpegthumbnailer";
29 longDescription = "FFmpegthumbnailer is a lightweight video
30 thumbnailer that can be used by file managers to create thumbnails
31- for your video files. The thumbnailer uses ffmpeg o decode frames
32 from the video files, so supported videoformats depend on the
33 configuration flags of ffmpeg.
34 This thumbnailer was designed to be as fast and lightweight as possible.
35- The only dependencies are ffmpeg and libpng.
36 ";
37- platforms = platforms.unix;
38 license = licenses.gpl2Plus;
39 maintainers = [ maintainers.jagajaga ];
0040 };
41-42}
···1+{
2+ lib,
3+ stdenv,
4+ fetchFromGitHub,
5+ cmake,
6+ pkg-config,
7+ ffmpeg-headless,
8+ libpng,
9+ libjpeg,
10}:
1112stdenv.mkDerivation rec {
13 pname = "ffmpegthumbnailer";
14+ version = "unstable-2024-01-04";
1516 src = fetchFromGitHub {
17 owner = "dirkvdb";
18 repo = "ffmpegthumbnailer";
19+ rev = "1b5a77983240bcf00a4ef7702c07bcd8f4e5f97c";
20+ hash = "sha256-7SPRQMPgdvP7J3HCf7F1eXxZjUH5vCYZ9UOwTUFMLp0=";
21 };
2223+ nativeBuildInputs = [
24+ cmake
25+ pkg-config
26+ ];
27+28+ buildInputs = [
29+ ffmpeg-headless
30+ libpng
31+ libjpeg
32+ ];
33+34 cmakeFlags = [ "-DENABLE_THUMBNAILER=ON" ];
3536 # https://github.com/dirkvdb/ffmpegthumbnailer/issues/215
···39 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
40 '';
4142+ meta = with lib; {
043 description = "A lightweight video thumbnailer";
044 longDescription = "FFmpegthumbnailer is a lightweight video
45 thumbnailer that can be used by file managers to create thumbnails
46+ for your video files. The thumbnailer uses ffmpeg to decode frames
47 from the video files, so supported videoformats depend on the
48 configuration flags of ffmpeg.
49 This thumbnailer was designed to be as fast and lightweight as possible.
50+ The only dependencies are ffmpeg and libpng/libjpeg.
51 ";
52+ homepage = "https://github.com/dirkvdb/ffmpegthumbnailer";
53 license = licenses.gpl2Plus;
54 maintainers = [ maintainers.jagajaga ];
55+ platforms = platforms.unix;
56+ mainProgram = "ffmpegthumbnailer";
57 };
058}
···21 setuptools
22 ];
2324+ patches = [
25+ # pngsuite is imported by code/test_png.py but is not defined in
26+ # setup.cfg, so it isn't built - this adds it to py_modules
27+ ./setup-cfg-pngsuite.patch
28+ ];
29+30+ # allow tests to use the binaries produced by this package
31+ preCheck = ''
32+ export PATH="$out/bin:$PATH"
33+ '';
34+35+ pythonImportsCheck = [ "png" "pngsuite" ];
3637 nativeCheckInputs = [ pytestCheckHook ];
38