Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkgs/applications/blockchains/sparrow/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
gnupg,
libusb1,
pcsclite,
udevCheckHook,
}:

let
Expand Down Expand Up @@ -221,6 +222,7 @@ stdenvNoCC.mkDerivation rec {
nativeBuildInputs = [
makeWrapper
copyDesktopItems
udevCheckHook
];

desktopItems = [
Expand Down Expand Up @@ -277,6 +279,8 @@ stdenvNoCC.mkDerivation rec {
runHook postInstall
'';

doInstallCheck = true;

meta = with lib; {
description = "Modern desktop Bitcoin wallet application supporting most hardware wallets and built on common standards such as PSBT, with an emphasis on transparency and usability";
homepage = "https://sparrowwallet.com";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/applications/emulators/zsnes/2.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
nasm,
pkg-config,
zlib,
udevCheckHook,
}:

stdenv.mkDerivation (finalAttrs: {
Expand All @@ -26,6 +27,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
nasm
pkg-config
udevCheckHook
];

buildInputs = [
Expand Down Expand Up @@ -56,6 +58,8 @@ stdenv.mkDerivation (finalAttrs: {
install -Dm644 icons/64x64x32.png $out/share/icons/hicolor/64x64/apps/zsnes.png
'';

doInstallCheck = true;

meta = {
homepage = "https://github.com/xyproto/zsnes";
description = "Maintained fork of zsnes";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
fetchFromGitHub,
lib,
gettext,
pkgs,
python3,
udevCheckHook,
umockdev,
writeScript,
}:
Expand Down Expand Up @@ -54,6 +54,7 @@ python3.pkgs.buildPythonApplication rec {

nativeCheckInputs = [
python3.pkgs.pytestCheckHook
udevCheckHook
umockdev
];

Expand All @@ -62,6 +63,7 @@ python3.pkgs.buildPythonApplication rec {
];

doCheck = true;
doInstallCheck = true;

installPhase = ''
runHook preInstall
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/graphics/sane/backends/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ stdenv.mkDerivation rec {
# https://github.com/NixOS/nixpkgs/issues/224569
enableParallelInstalling = false;

doInstallCheck = true;

passthru.tests = {
inherit (nixosTests) sane;
};
Expand Down
12 changes: 8 additions & 4 deletions pkgs/applications/misc/digitalbitbox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
qtwebsockets,
qtmultimedia,
udevRule51 ? ''
, SUBSYSTEM=="usb", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="dbb%n", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2402"
, '',
SUBSYSTEM=="usb", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="dbb%n", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2402"
'',
udevRule52 ? ''
, KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2402", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="dbbf%n"
, '',
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2402", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="dbbf%n"
'',
udevCheckHook,
writeText,
}:

Expand Down Expand Up @@ -66,6 +67,7 @@ mkDerivation rec {
makeWrapper
pkg-config
qttools
udevCheckHook
];

buildInputs = [
Expand Down Expand Up @@ -121,6 +123,8 @@ mkDerivation rec {

enableParallelBuilding = true;

doInstallCheck = true;

meta = with lib; {
description = "QT based application for the Digital Bitbox hardware wallet";
longDescription = ''
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/misc/moolticute/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ mkDerivation rec {
qtwebsockets
];

doInstallCheck = true;

preConfigure = "mkdir -p build && cd build";
qmakeFlags = [ "../Moolticute.pro" ];

Expand Down
4 changes: 4 additions & 0 deletions pkgs/applications/misc/openambit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ mkDerivation rec {

doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck

$out/bin/openambit --version

runHook postInstallCheck
'';

postInstall = ''
Expand Down
4 changes: 4 additions & 0 deletions pkgs/applications/misc/opentx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
gtest,
dfu-util,
avrdude,
udevCheckHook,
}:

mkDerivation rec {
Expand All @@ -30,6 +31,7 @@ mkDerivation rec {
gcc-arm-embedded
python3Packages.pillow
qttools
udevCheckHook
];

buildInputs = [
Expand All @@ -54,6 +56,8 @@ mkDerivation rec {
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];

doInstallCheck = true;

meta = with lib; {
description = "OpenTX Companion transmitter support software";
longDescription = ''
Expand Down
4 changes: 4 additions & 0 deletions pkgs/applications/misc/prusa-slicer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
ctestCheckHook,
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
systemd,
udevCheckHook,
wxGTK-override ? null,
opencascade-override ? null,
}:
Expand Down Expand Up @@ -96,6 +97,7 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
wrapGAppsHook3
wxGTK-override'
udevCheckHook
];

buildInputs =
Expand Down Expand Up @@ -138,6 +140,8 @@ stdenv.mkDerivation (finalAttrs: {

separateDebugInfo = true;

doInstallCheck = true;

# The build system uses custom logic - defined in
# cmake/modules/FindNLopt.cmake in the package source - for finding the nlopt
# library, which doesn't pick up the package in the nix store. We
Expand Down
4 changes: 4 additions & 0 deletions pkgs/applications/misc/qlcplus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
libusb-compat-0_1,
libsndfile,
libmad,
udevCheckHook,
}:

mkDerivation rec {
Expand All @@ -30,6 +31,7 @@ mkDerivation rec {
nativeBuildInputs = [
qmake
pkg-config
udevCheckHook
];
buildInputs = [
udev
Expand Down Expand Up @@ -60,6 +62,8 @@ mkDerivation rec {

enableParallelBuilding = true;

doInstallCheck = true;

postInstall = ''
ln -sf $out/lib/*/libqlcplus* $out/lib
'';
Expand Down
8 changes: 7 additions & 1 deletion pkgs/applications/radio/direwolf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
python3,
espeak,
udev,
udevCheckHook,
extraScripts ? false,
}:

Expand All @@ -27,7 +28,10 @@ stdenv.mkDerivation rec {
hash = "sha256-Vbxc6a6CK+wrBfs15dtjfRa1LJDKKyHMrg8tqsF7EX4=";
};

nativeBuildInputs = [ cmake ];
nativeBuildInputs = [
cmake
udevCheckHook
];

strictDeps = true;

Expand Down Expand Up @@ -71,6 +75,8 @@ stdenv.mkDerivation rec {
--replace espeak ${espeak}/bin/espeak
'';

doInstallCheck = true;

meta = with lib; {
description = "Soundcard Packet TNC, APRS Digipeater, IGate, APRStt gateway";
homepage = "https://github.com/wb2osz/direwolf/";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/radio/limesuite/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ stdenv.mkDerivation rec {
wxGTK32
];

doInstallCheck = true;

postInstall = ''
install -Dm444 -t $out/lib/udev/rules.d ../udev-rules/64-limesuite.rules
install -Dm444 -t $out/share/limesuite bin/Release/lms7suite_mcu/*
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/radio/qdmr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ stdenv.mkDerivation rec {
cp ${src}/dist/99-qdmr.rules $out/etc/udev/rules.d/
'';

doInstallCheck = true;

meta = {
description = "GUI application and command line tool for programming DMR radios";
homepage = "https://dm3mat.darc.de/qdmr/";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/radio/rtl-sdr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ let
"-DWITH_RPC=ON"
];

doInstallCheck = true;

postPatch = ''
substituteInPlace CMakeLists.txt \
--replace '/etc/udev/rules.d' "$out/etc/udev/rules.d" \
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/science/electronics/dsview/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ stdenv.mkDerivation (finalAttrs: {
python3
] ++ lib.optional stdenv.hostPlatform.isLinux qtwayland;

doInstallCheck = true;

meta = {
description = "GUI program for supporting various instruments from DreamSourceLab, including logic analyzer, oscilloscope, etc";
mainProgram = "DSView";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/applications/science/electronics/linux-gpib/user.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
bison,
flex,
automake,
udevCheckHook,
}:

stdenv.mkDerivation (
Expand All @@ -22,11 +23,14 @@ stdenv.mkDerivation (
bison
flex
automake
udevCheckHook
];

configureFlags = [
"--sysconfdir=$(out)/etc"
"--prefix=$(out)"
];

doInstallCheck = true;
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ mkDerivation rec {
sed -i 's#/usr/share#share#g' CMakeLists.txt
'';

doInstallCheck = true;

meta = with lib; {
description = "Free software for Hantek and compatible (Voltcraft/Darkwire/Protek/Acetech) USB digital signal oscilloscopes";
mainProgram = "OpenHantek";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/by-name/ac/acpilight/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
fetchgit,
python3,
coreutils,
udevCheckHook,
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -31,6 +32,11 @@ stdenv.mkDerivation rec {

makeFlags = [ "DESTDIR=$(out) prefix=" ];

nativeBuildInputs = [
udevCheckHook
];
doInstallCheck = true;

meta = with lib; {
homepage = "https://gitlab.com/wavexx/acpilight";
description = "ACPI backlight control";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/by-name/ai/airspy/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
cmake
pkg-config
];

doInstallCheck = true;
buildInputs = [ libusb1 ];

cmakeFlags = lib.optionals stdenv.hostPlatform.isLinux [ "-DINSTALL_UDEV_RULES=ON" ];
Expand Down
6 changes: 6 additions & 0 deletions pkgs/by-name/al/alsa-utils/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ stdenv.mkDerivation rec {
wrapProgram $out/bin/aplay --set-default ALSA_PLUGIN_DIR ${plugin-dir}
'';

postInstall = ''
# udev rules are super broken, violating `udevadm verify` in various creative ways.
# NixOS has its own set of alsa udev rules, we can just delete the udev rules for this package
rm -rf $out/lib/udev
'';

passthru.updateScript = directoryListingUpdater {
url = "https://www.alsa-project.org/files/pub/utils/";
};
Expand Down
4 changes: 4 additions & 0 deletions pkgs/by-name/am/amazon-ec2-net-utils/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
makeWrapper,
nix-update-script,
systemd,
udevCheckHook,
util-linux,
}:

Expand All @@ -31,6 +32,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
installShellFiles
makeWrapper
udevCheckHook
];

buildInputs = [
Expand Down Expand Up @@ -101,6 +103,8 @@ stdenv.mkDerivation rec {
runHook postInstall
'';

doInstallCheck = true;

outputs = [
"out"
"man"
Expand Down
Loading