Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
67c8ac6
gpodder: remove with statements
philiptaron Aug 16, 2024
9c61e10
ly: remove with statements
philiptaron Aug 16, 2024
44f5fc1
eclipse: remove with statements
philiptaron Aug 16, 2024
f88f22d
jupyter-kernels: remove with statements
philiptaron Aug 16, 2024
729237c
kakounePlugins: remove with statements
philiptaron Aug 16, 2024
167cc0b
rstudio: remove with statements
philiptaron Aug 16, 2024
549dbd2
vimPlugins: remove with statements in aliases
philiptaron Aug 16, 2024
c617029
brscan4: remove with statements
philiptaron Aug 16, 2024
fe193f4
brscan5: remove with statements
philiptaron Aug 16, 2024
a50bd73
apeClex: remove with statements
philiptaron Aug 16, 2024
dc3c672
ape: remove with statements
philiptaron Aug 16, 2024
36a3734
bemenu: remove with statements
philiptaron Aug 16, 2024
ae33a52
clightd: remove with statements
philiptaron Aug 16, 2024
7dbea25
clight: remove with statements
philiptaron Aug 16, 2024
b4eeedc
digitalbitbox: remove with statements
philiptaron Aug 16, 2024
6ecdcc6
goldendict: remove with statements
philiptaron Aug 16, 2024
1419789
sweethome3d: remove with statements
philiptaron Aug 16, 2024
929615b
workrave: remove with statements
philiptaron Aug 16, 2024
b70b0ce
brig: remove with statements
philiptaron Aug 16, 2024
642bfd6
chromium: remove with statements
philiptaron Aug 16, 2024
bc794b7
links2: remove with statements
philiptaron Aug 16, 2024
19b0d70
weechat: remove with statements
philiptaron Aug 16, 2024
926b622
ngadmin: remove with statements
philiptaron Aug 16, 2024
62cb457
tremc: remove with statements
philiptaron Aug 16, 2024
ecc748b
synology-drive-client: remove with statements
philiptaron Aug 16, 2024
0b74a12
gwyddion: remove with statements
philiptaron Aug 16, 2024
6b76460
picoscope: remove with statements
philiptaron Aug 16, 2024
66a0775
coq: remove with statements
philiptaron Aug 16, 2024
24395a1
wolfram-engine: remove with statements
philiptaron Aug 16, 2024
75923e2
git-sync: remove with statements
philiptaron Aug 16, 2024
48e8083
mplayer: remove with statements
philiptaron Aug 16, 2024
2d7ef18
mpv: remove with statements
philiptaron Aug 16, 2024
e3c6d33
obs-studio: remove with statements
philiptaron Aug 16, 2024
e1854c3
singularity: remove with statements
philiptaron Aug 16, 2024
c406a6e
fetchsvn: remove with statements
philiptaron Aug 16, 2024
661aa51
writers: remove with statements from aliases
philiptaron Aug 16, 2024
9996e83
btrfs-auto-snapshot: remove with statements
philiptaron Aug 16, 2024
e05d16a
labelife-label-printer: remove with statements
philiptaron Aug 16, 2024
c58fcde
libplacebo: remove with statements
philiptaron Aug 16, 2024
aa20cca
modrinth-app-unwrapped: remove with statements
philiptaron Aug 16, 2024
faa935f
mousecape: remove with statements
philiptaron Aug 16, 2024
e659af6
smartgithg: remove with statements
philiptaron Aug 16, 2024
63b0551
ats2: remove with statements
philiptaron Aug 16, 2024
418495c
dotnet: remove with statements
philiptaron Aug 16, 2024
bdc75c9
elm.hs810Pkgs: remove with statements
philiptaron Aug 16, 2024
344f63d
elm.hs92Pkgs: remove with statements
philiptaron Aug 16, 2024
37a0bd3
elm.hs96Pkgs: remove with statements
philiptaron Aug 16, 2024
99aabc6
llvm: remove with statements from common.nix
philiptaron Aug 16, 2024
e9bf9df
mezzo: remove with statements
philiptaron Aug 16, 2024
835804e
sbcl: remove with statements
philiptaron Aug 16, 2024
58fe1a0
coqPackages.QuickChick: remove with statements
philiptaron Aug 16, 2024
4b18523
coqPackages_8_10.mathcomp-abel: remove with statements
philiptaron Aug 16, 2024
1dbcead
coqPackages.serapi: remove with statements
philiptaron Aug 16, 2024
8e3651c
aeson: remove with statements
philiptaron Aug 16, 2024
0abbed5
haskellLib.checkUnusedPackages: remove with lib statement
philiptaron Aug 16, 2024
ce3cb37
luajit_2_0: remove with lib statement
philiptaron Aug 16, 2024
f8967b4
luajit: remove with lib statement
philiptaron Aug 16, 2024
b77e53f
getdns: remove with statements
philiptaron Aug 16, 2024
0619819
libint: remove with statements
philiptaron Aug 16, 2024
ead2eec
libplacebo: remove with statements
philiptaron Aug 16, 2024
9707090
libucl: remove with statements
philiptaron Aug 16, 2024
4d44b70
mvapich: remove with statements
philiptaron Aug 16, 2024
13deb3a
opencv: remove with statements
philiptaron Aug 16, 2024
e949a91
opencv: remove with statements
philiptaron Aug 16, 2024
2429bed
openssl: remove with statements
philiptaron Aug 16, 2024
99219bd
tensorrt: remove with statements
philiptaron Aug 16, 2024
11cddcd
zeroc-mcpp: remove with statements
philiptaron Aug 16, 2024
8526be0
luaPackages.requiredLuaModules: remove with lib statement
philiptaron Aug 16, 2024
eded5c3
luaPackages: remove with sstatement in overrides
philiptaron Aug 16, 2024
633c856
nodePackage: remove with statements in aliases
philiptaron Aug 16, 2024
8d71172
gnupg: remove with statements
philiptaron Aug 16, 2024
b45066a
python-lsp-black: remove with statements
philiptaron Aug 16, 2024
8b61506
python311Packages.spacy: remove with statements
philiptaron Aug 16, 2024
4785eee
python311Packages.tensorflow: remove with statements
philiptaron Aug 16, 2024
c434f3c
python3Packages.tinyobjloader-py: remove with statements
philiptaron Aug 16, 2024
49ddbfe
python3Packages.vega-datasets: remove with statements
philiptaron Aug 16, 2024
623a797
azure-static-sites-client: remove with statements
philiptaron Aug 16, 2024
d3d5b2d
gdb: remove with statements
philiptaron Aug 16, 2024
479dd4d
lsof: remove with statements
philiptaron Aug 16, 2024
979820e
ezquake: remove with statements
philiptaron Aug 16, 2024
96d895f
mindustry: remove with statements
philiptaron Aug 16, 2024
8910fea
simutrans: remove with statements
philiptaron Aug 16, 2024
8ee773a
ultrastardx: remove with statements
philiptaron Aug 16, 2024
9062806
brgenml1lpr: remove with statements
philiptaron Aug 16, 2024
7b3a3f3
freebsd.mkDerivation: remove with statements
philiptaron Aug 16, 2024
17a7452
cryptsetup: remove with statements
philiptaron Aug 16, 2024
9a68979
deviceTree: remove with statements
philiptaron Aug 16, 2024
460c91c
nv-fabricmanager: remove with statements
philiptaron Aug 16, 2024
1f6ce17
formats: remove with statements
philiptaron Aug 16, 2024
6d77de4
apacheKafka: remove with statements
philiptaron Aug 16, 2024
d6236f2
slurm: remove with statements
philiptaron Aug 16, 2024
82929eb
public-inbox: remove with statements
philiptaron Aug 16, 2024
07c4532
check-{mssql,nwc,ups}-health: remove with statements
philiptaron Aug 16, 2024
31d91e9
sphinxsearch: remove with statements
philiptaron Aug 16, 2024
463a5e7
trickster: remove with statements
philiptaron Aug 16, 2024
2cc74f9
xorg: remove with statements in overrides
philiptaron Aug 16, 2024
9ef2833
fish: remove with statements
philiptaron Aug 16, 2024
2cf5e91
stdenv: remove with statements
philiptaron Aug 16, 2024
abcb8ef
tests.texlive: remove with statements
philiptaron Aug 16, 2024
60f9952
xnotify: remove with statements
philiptaron Aug 16, 2024
fada673
xprompt: remove with statements
philiptaron Aug 16, 2024
6245f78
ceph: remove with statements
philiptaron Aug 16, 2024
31fa793
mergerfs-tools: remove with statements
philiptaron Aug 16, 2024
092a9b8
mtdutils: remove with statements
philiptaron Aug 16, 2024
ebdb163
diagrams-builder: remove with statements
philiptaron Aug 16, 2024
7173c94
fim: remove with statements
philiptaron Aug 16, 2024
6e44d53
coreboot-utils: remove with statements
philiptaron Aug 16, 2024
85878e1
ultrastar-creator: remove with statements
philiptaron Aug 16, 2024
5ac2cd5
ultrastar-manager: remove with statements
philiptaron Aug 16, 2024
6c28c49
curl: remove with statements
philiptaron Aug 16, 2024
4377a79
linux-router: remove with statements
philiptaron Aug 16, 2024
a5d230f
ghidra: remove with statements
philiptaron Aug 16, 2024
3eb82a7
pass: remove with statements
philiptaron Aug 16, 2024
2e0ccc2
vaultwarden: remove with statements
philiptaron Aug 16, 2024
3fb954d
monit: remove with statements
philiptaron Aug 16, 2024
f1ab975
nvtop: remove with statements
philiptaron Aug 16, 2024
8e8bfb1
rofi-systemd: remove with statements
philiptaron Aug 16, 2024
89bced9
rsyslog: remove with statements
philiptaron Aug 16, 2024
a77b1b3
asciidoc: remove with statements
philiptaron Aug 16, 2024
65ec5b6
texlive: remove with statements
philiptaron Aug 16, 2024
ba93ec2
pkgs: remove with statements in aliases
philiptaron Aug 16, 2024
4363ce7
theLoungePlugins: remove with statements
philiptaron Aug 16, 2024
086aa4f
python3Packages: remove with statements in aliases
philiptaron Aug 16, 2024
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
2 changes: 1 addition & 1 deletion pkgs/applications/audio/gpodder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ python311Packages.buildPythonApplication rec {
./disable-autoupdate.patch
];

postPatch = with lib; ''
postPatch = ''
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
'';

Expand Down
14 changes: 6 additions & 8 deletions pkgs/applications/display-managers/ly/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions pkgs/applications/editors/eclipse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ in rec {
# Gather up the desired plugins.
pluginEnv = buildEnv {
name = "eclipse-plugins";
paths =
with lib;
filter (x: x ? isEclipsePlugin) (closePropagation plugins);
paths = lib.filter (x: x ? isEclipsePlugin) (lib.closePropagation plugins);
};

# Prepare the JVM arguments to add to the ini file. We here also
Expand Down
10 changes: 5 additions & 5 deletions pkgs/applications/editors/jupyter/kernel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ in

# Definitions is an attribute set.

create = { definitions ? default }: with lib; stdenv.mkDerivation {
create = { definitions ? default }: stdenv.mkDerivation {

name = "jupyter-kernels";

Expand All @@ -37,14 +37,14 @@ in
installPhase = ''
mkdir kernels

${concatStringsSep "\n" (mapAttrsToList (kernelName: unfilteredKernel:
${lib.concatStringsSep "\n" (lib.mapAttrsToList (kernelName: unfilteredKernel:
let
allowedKernelKeys = ["argv" "displayName" "language" "interruptMode" "env" "metadata" "logo32" "logo64" "extraPaths"];
kernel = filterAttrs (n: v: (any (x: x == n) allowedKernelKeys)) unfilteredKernel;
kernel = lib.filterAttrs (n: v: (lib.any (x: x == n) allowedKernelKeys)) unfilteredKernel;
config = builtins.toJSON (
kernel
// {display_name = if (kernel.displayName != "") then kernel.displayName else kernelName;}
// (optionalAttrs (kernel ? interruptMode) { interrupt_mode = kernel.interruptMode; })
// (lib.optionalAttrs (kernel ? interruptMode) { interrupt_mode = kernel.interruptMode; })
);
extraPaths = kernel.extraPaths or {}
// lib.optionalAttrs (kernel.logo32 != null) { "logo-32x32.png" = kernel.logo32; }
Expand All @@ -64,7 +64,7 @@ in
meta = {
description = "Wrapper to create jupyter notebook kernel definitions";
homepage = "https://jupyter.org/";
maintainers = with maintainers; [ aborsu ];
maintainers = with lib.maintainers; [ aborsu ];
};
};
}
26 changes: 12 additions & 14 deletions pkgs/applications/editors/kakoune/plugins/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@

lib: overridden:

with overridden;

let
# Removing recurseForDerivation prevents derivations of aliased attribute
# set to appear while listing all the packages available.
removeRecurseForDerivations = alias: with lib;
removeRecurseForDerivations = alias:
if alias.recurseForDerivations or false then
removeAttrs alias ["recurseForDerivations"]
lib.removeAttrs alias ["recurseForDerivations"]
else alias;

# Disabling distribution prevents top-level aliases for non-recursed package
# sets from building on Hydra.
removeDistribute = alias: with lib;
if isDerivation alias then
dontDistribute alias
removeDistribute = alias:
if lib.isDerivation alias then
lib.dontDistribute alias
else alias;

# Make sure that we are not shadowing something from
Expand All @@ -37,11 +35,11 @@ let

in
mapAliases ({
kak-auto-pairs = auto-pairs-kak; # backwards compat, added 2021-01-04
kak-buffers = kakoune-buffers; # backwards compat, added 2021-01-04
kak-byline = byline-kak; # backwards compat, added 2023-10-22
kak-fzf = fzf-kak; # backwards compat, added 2021-01-04
kak-powerline = powerline-kak; # backwards compat, added 2021-01-04
kak-prelude = prelude-kak; # backwards compat, added 2021-01-04
kak-vertical-selection = kakoune-vertical-selection; # backwards compat, added 2021-01-04
kak-auto-pairs = overridden.auto-pairs-kak; # backwards compat, added 2021-01-04
kak-buffers = overridden.kakoune-buffers; # backwards compat, added 2021-01-04
kak-byline = overridden.byline-kak; # backwards compat, added 2023-10-22
kak-fzf = overridden.fzf-kak; # backwards compat, added 2021-01-04
kak-powerline = overridden.powerline-kak; # backwards compat, added 2021-01-04
kak-prelude = overridden.prelude-kak; # backwards compat, added 2021-01-04
kak-vertical-selection = overridden.kakoune-vertical-selection; # backwards compat, added 2021-01-04
} // deprecations)
10 changes: 5 additions & 5 deletions pkgs/applications/editors/rstudio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ in
--replace-fail '@quarto@' ${quarto}
'';

hunspellDictionaries = with lib; filter isDerivation (unique (attrValues hunspellDicts));
hunspellDictionaries = lib.filter lib.isDerivation (lib.unique (lib.attrValues hunspellDicts));
# These dicts contain identically-named dict files, so we only keep the
# -large versions in case of clashes
largeDicts = with lib; filter (d: hasInfix "-large-wordlist" d.name) hunspellDictionaries;
otherDicts = with lib; filter
(d: !(hasAttr "dictFileName" d &&
elem d.dictFileName (map (d: d.dictFileName) largeDicts)))
largeDicts = lib.filter (d: lib.hasInfix "-large-wordlist" d.name) hunspellDictionaries;
otherDicts = lib.filter
(d: !(lib.hasAttr "dictFileName" d &&
lib.elem d.dictFileName (map (d: d.dictFileName) largeDicts)))
hunspellDictionaries;
dictionaries = largeDicts ++ otherDicts;

Expand Down
10 changes: 5 additions & 5 deletions pkgs/applications/editors/vim/plugins/aliases.nix
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nix nix-prefetch-git neovim-unwrapped nurl ]}" --prefix PYTHONPATH : "${./.}:${../../../../../maintainers/scripts}" )

This change causes a rebuild because it pulls in everything in the directory.

I think for an updater script, that's fine, if bad manners.

Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ final: prev:
let
# Removing recurseForDerivation prevents derivations of aliased attribute
# set to appear while listing all the packages available.
removeRecurseForDerivations = alias: with lib;
removeRecurseForDerivations = alias:
if alias.recurseForDerivations or false then
removeAttrs alias ["recurseForDerivations"]
lib.removeAttrs alias ["recurseForDerivations"]
else alias;

# Disabling distribution prevents top-level aliases for non-recursed package
# sets from building on Hydra.
removeDistribute = alias: with lib;
if isDerivation alias then
dontDistribute alias
removeDistribute = alias:
if lib.isDerivation alias then
lib.dontDistribute alias
else alias;

# Make sure that we are not shadowing something from
Expand Down
8 changes: 4 additions & 4 deletions pkgs/applications/graphics/sane/backends/brscan4/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ stdenv, lib, fetchurl, callPackage, patchelf, makeWrapper, libusb-compat-0_1 }:
let
myPatchElf = file: with lib; ''
myPatchElf = file: ''
patchelf --set-interpreter \
${stdenv.cc.libc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${stdenv.cc.libc}/lib/ld-linux${lib.optionalString stdenv.is64bit "-x86-64"}.so.2 \
${file}
'';

Expand Down Expand Up @@ -43,13 +43,13 @@ stdenv.mkDerivation rec {
done
'';

installPhase = with lib; ''
installPhase = ''
runHook preInstall
PATH_TO_BRSCAN4="opt/brother/scanner/brscan4"
mkdir -p $out/$PATH_TO_BRSCAN4
cp -rp $PATH_TO_BRSCAN4/* $out/$PATH_TO_BRSCAN4
mkdir -p $out/lib/sane
cp -rp usr/lib${optionalString stdenv.is64bit "64"}/sane/* $out/lib/sane
cp -rp usr/lib${lib.optionalString stdenv.is64bit "64"}/sane/* $out/lib/sane

# Symbolic links were absolute. Fix them so that they point to $out.
pushd "$out/lib/sane" > /dev/null
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/graphics/sane/backends/brscan5/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ stdenv, lib, fetchurl, patchelf, makeWrapper, libusb1, avahi-compat, glib, libredirect, nixosTests }:
let
myPatchElf = file: with lib; ''
myPatchElf = file: ''
patchelf --set-interpreter \
${stdenv.cc.libc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${stdenv.cc.libc}/lib/ld-linux${lib.optionalString stdenv.is64bit "-x86-64"}.so.2 \
${file}
'';
system = stdenv.hostPlatform.system;
Expand Down Expand Up @@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
printf '/etc/opt/brother/scanner/models\x00' | dd of=opt/brother/scanner/brscan5/libsane-brother5.so.1.0.7 bs=1 seek=${toString patchOffsetBytes} conv=notrunc
'';

installPhase = with lib; ''
installPhase = ''
runHook preInstall
PATH_TO_BRSCAN5="opt/brother/scanner/brscan5"
mkdir -p $out/$PATH_TO_BRSCAN5
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/ape/apeclex.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ callPackage ./. {
pname = "ape-clex";
lexiconPath = "${attemptoClex}/clex_lexicon.pl";
description = "Parser for Attempto Controlled English (ACE) with a large lexicon (~100,000 entries)";
license = with lib; [ licenses.lgpl3 licenses.gpl3 ];
license = with lib.licenses; [ lgpl3 gpl3 ];
}
2 changes: 1 addition & 1 deletion pkgs/applications/misc/ape/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
lexiconPath ? "prolog/lexicon/clex_lexicon.pl",
pname ? "ape",
description ? "Parser for Attempto Controlled English (ACE)",
license ? with lib; licenses.lgpl3
license ? lib.licenses.lgpl3
}:

stdenv.mkDerivation rec {
Expand Down
8 changes: 4 additions & 4 deletions pkgs/applications/misc/bemenu/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ pkg-config scdoc ]
++ lib.optionals waylandSupport [ wayland-scanner ];

buildInputs = with lib; [
buildInputs = [
cairo
fribidi
harfbuzz
libxkbcommon
pango
] ++ optional ncursesSupport ncurses
++ optionals waylandSupport [ wayland wayland-protocols ]
++ optionals x11Support [
] ++ lib.optional ncursesSupport ncurses
++ lib.optionals waylandSupport [ wayland wayland-protocols ]
++ lib.optionals x11Support [
xorg.libX11 xorg.libXinerama xorg.libXft
xorg.libXdmcp xorg.libpthreadstubs xorg.libxcb
];
Expand Down
22 changes: 11 additions & 11 deletions pkgs/applications/misc/clight/clightd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@ stdenv.mkDerivation rec {
sed -i "s@pkg_get_variable(POLKIT_ACTION_DIR.*@set(POLKIT_ACTION_DIR $POLKIT_ACTION_DIR)@" CMakeLists.txt
'';

cmakeFlags = with lib;
cmakeFlags =
[ "-DSYSTEMD_SERVICE_DIR=${placeholder "out"}/lib/systemd/system"
"-DDBUS_CONFIG_DIR=${placeholder "out"}/etc/dbus-1/system.d"
# systemd.pc has prefix=${systemd.out}
"-DMODULE_LOAD_DIR=${placeholder "out"}/lib/modules-load.d"
] ++ optional enableDdc "-DENABLE_DDC=1"
++ optional enableDpms "-DENABLE_DPMS=1"
++ optional enableGamma "-DENABLE_GAMMA=1"
++ optional enableScreen "-DENABLE_SCREEN=1"
++ optional enableYoctolight "-DENABLE_YOCTOLIGHT=1";
] ++ lib.optional enableDdc "-DENABLE_DDC=1"
++ lib.optional enableDpms "-DENABLE_DPMS=1"
++ lib.optional enableGamma "-DENABLE_GAMMA=1"
++ lib.optional enableScreen "-DENABLE_SCREEN=1"
++ lib.optional enableYoctolight "-DENABLE_YOCTOLIGHT=1";

nativeBuildInputs = [
dbus
cmake
pkg-config
];

buildInputs = with lib; [
buildInputs = [
glib
udev
polkit
Expand All @@ -58,10 +58,10 @@ stdenv.mkDerivation rec {
libXdmcp
util-linux
libpthreadstubs
] ++ optionals enableDdc [ ddcutil ]
++ optionals enableDpms [ libXext ]
++ optionals enableGamma [ libXrandr ]
++ optionals (enableDpms || enableGamma || enableScreen) [ libdrm wayland ];
] ++ lib.optionals enableDdc [ ddcutil ]
++ lib.optionals enableDpms [ libXext ]
++ lib.optionals enableGamma [ libXrandr ]
++ lib.optionals (enableDpms || enableGamma || enableScreen) [ libdrm wayland ];

postInstall = ''
mkdir -p $out/bin
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/clight/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
bash-completion
];

buildInputs = with lib; [
buildInputs = [
gsl
popt
upower
Expand All @@ -31,8 +31,8 @@ stdenv.mkDerivation rec {
geoclue2
libconfig
libmodule
] ++ optional withGeoclue geoclue2
++ optional withUpower upower;
] ++ lib.optional withGeoclue geoclue2
++ lib.optional withUpower upower;

cmakeFlags = [
"-DSESSION_BUS_DIR=${placeholder "out"}/share/dbus-1/services"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/digitalbitbox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ in mkDerivation rec {
sha256 = "ig3+TdYv277D9GVnkRSX6nc6D6qruUOw/IQdQCK6FoA=";
};

nativeBuildInputs = with lib; [
nativeBuildInputs = [
autoreconfHook
curl
git
Expand Down
16 changes: 8 additions & 8 deletions pkgs/applications/misc/goldendict/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ stdenv.mkDerivation rec {
++ lib.optionals withFFmpeg [ libao ffmpeg ]
++ lib.optional withZim zstd;

qmakeFlags = with lib; [
qmakeFlags = [
"goldendict.pro"
(optional withCC "CONFIG+=chinese_conversion_support")
(optional (!withCC) "CONFIG+=no_chinese_conversion_support")
(optional (!withEpwing) "CONFIG+=no_epwing_support")
(optional (!withExtraTiff) "CONFIG+=no_extra_tiff_handler")
(optional (!withFFmpeg) "CONFIG+=no_ffmpeg_player")
(optional (!withMultimedia)"CONFIG+=no_qtmultimedia_player")
(optional withZim "CONFIG+=zim_support")
(lib.optional withCC "CONFIG+=chinese_conversion_support")
(lib.optional (!withCC) "CONFIG+=no_chinese_conversion_support")
(lib.optional (!withEpwing) "CONFIG+=no_epwing_support")
(lib.optional (!withExtraTiff) "CONFIG+=no_extra_tiff_handler")
(lib.optional (!withFFmpeg) "CONFIG+=no_ffmpeg_player")
(lib.optional (!withMultimedia)"CONFIG+=no_qtmultimedia_player")
(lib.optional withZim "CONFIG+=zim_support")
];

postInstall = lib.optionalString stdenv.isDarwin ''
Expand Down
5 changes: 1 addition & 4 deletions pkgs/applications/misc/sweethome3d/editors.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@

let

sweetExec = with lib;
m: "sweethome3d-"
+ removeSuffix "libraryeditor" (toLower m)
+ "-editor";
sweetExec = m: "sweethome3d-" + lib.removeSuffix "libraryeditor" (lib.toLower m) + "-editor";

mkEditorProject =
{ pname, module, version, src, license, description, desktopName }:
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/misc/workrave/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
repo = "workrave";
owner = "rcaelers";
rev = with lib;
"v" + concatStringsSep "_" (splitVersion version);
rev = "v" + lib.concatStringsSep "_" (lib.splitVersion version);
sha256 = "sha256-U39zr8XGIDbyY480bla2yTaRQLP3wMrL8RLWjlTa5uY=";
};

Expand Down
Loading