diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-04-18 20:12:09 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-04-18 20:12:09 +0000 |
commit | 730a9a04facd478381f3911ae668b3b46e349f08 (patch) | |
tree | b22e41b13cd52ea4faf579643e506f200d326e65 /pkgs/tools/misc/ffsend | |
parent | 3d703cfc9e14b3db8e84cab28aec83ed509397f1 (diff) |
stdenv.isBSD: reinit
This was removed in e29b0da9c7492732e0dc5730c3da754baa57a1a2, because it was felt it was ambiguous whether isBSD should remove Darwin. I think it should be reintroduced. Packages sometimes have their own concepts of "is BSD" e.g. Lua, and these almost never include Darwin, so let's keep Darwin excluded. Without a way to say "is this BSD", one has to list all flavours of BSD seperately, even though fundamentally they're still extremely similar. I don't want to have to write the following! stdenv.isFreeBSD || stdenv.isNetBSD || stdenv.isOpenBSD || stdenv.isDragonFlyBSD Additionally, we've had stdenv.hostPlatform.isBSD this whole time, and it hasn't hurt anything.
Diffstat (limited to 'pkgs/tools/misc/ffsend')
-rw-r--r-- | pkgs/tools/misc/ffsend/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/misc/ffsend/default.nix b/pkgs/tools/misc/ffsend/default.nix index 4c92a0be79208..4e059725f86b2 100644 --- a/pkgs/tools/misc/ffsend/default.nix +++ b/pkgs/tools/misc/ffsend/default.nix @@ -7,7 +7,7 @@ }: let - usesX11 = stdenv.isLinux || stdenv.hostPlatform.isBSD; + usesX11 = stdenv.isLinux || stdenv.isBSD; in assert (x11Support && usesX11) -> xclip != null || xsel != null; |