diff options
author | Malte Brandy <malte.brandy@maralorn.de> | 2020-10-14 01:46:17 +0200 |
---|---|---|
committer | Malte Brandy <malte.brandy@maralorn.de> | 2020-10-14 01:46:17 +0200 |
commit | cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a (patch) | |
tree | a63c3fb3954ecfd407aa649f777f102a262a4ddb /pkgs/applications | |
parent | 74d875206a825007e27abaa7c590f4c1db35ad31 (diff) | |
download | nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar.gz nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar.bz2 nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar.lz nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar.xz nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar.zst nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.zip |
treewide: De-inline uses of lib.boolToString
This commit should not change eval results
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/razergenie/default.nix | 4 | ||||
-rw-r--r-- | pkgs/applications/video/obs-studio/wlrobs.nix | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/applications/misc/razergenie/default.nix b/pkgs/applications/misc/razergenie/default.nix index 9042ab38e75..ac0f373dc93 100644 --- a/pkgs/applications/misc/razergenie/default.nix +++ b/pkgs/applications/misc/razergenie/default.nix @@ -27,8 +27,8 @@ in stdenv.mkDerivation { ]; mesonFlags = [ - "-Denable_experimental=${if enableExperimental then "true" else "false"}" - "-Dinclude_matrix_discovery=${if includeMatrixDiscovery then "true" else "false"}" + "-Denable_experimental=${lib.boolToString enableExperimental}" + "-Dinclude_matrix_discovery=${lib.boolToString includeMatrixDiscovery}" ]; meta = with lib; { diff --git a/pkgs/applications/video/obs-studio/wlrobs.nix b/pkgs/applications/video/obs-studio/wlrobs.nix index 99486a9ccc0..14bc80dd388 100644 --- a/pkgs/applications/video/obs-studio/wlrobs.nix +++ b/pkgs/applications/video/obs-studio/wlrobs.nix @@ -7,7 +7,7 @@ # ln -s ~/.nix-profile/share/obs/obs-plugins/wlrobs/bin/64bit/libwlrobs.so ~/.config/obs-studio/plugins/wlrobs/bin/64bit { stdenv, fetchhg, wayland, obs-studio , meson, ninja, pkgconfig, libX11 -, dmabufSupport ? false, libdrm ? null, libGL ? null}: +, dmabufSupport ? false, libdrm ? null, libGL ? null, lib}: assert dmabufSupport -> libdrm != null && libGL != null; @@ -29,7 +29,7 @@ stdenv.mkDerivation { ''; mesonFlags = [ - "-Duse_dmabuf=${if dmabufSupport then "true" else "false"}" + "-Duse_dmabuf=${lib.boolToString dmabufSupport}" ]; meta = with stdenv.lib; { |