Refactor mkFlag / shouldUsePkg into the nixpkgs libraries
This commit is contained in:
@@ -9,10 +9,8 @@
|
||||
, prefix ? ""
|
||||
}:
|
||||
|
||||
with stdenv;
|
||||
let
|
||||
|
||||
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (x: x == stdenv.system) pkg.meta.platforms then pkg else null;
|
||||
|
||||
libOnly = prefix == "lib";
|
||||
|
||||
optLibjack2 = shouldUsePkg libjack2;
|
||||
|
||||
Reference in New Issue
Block a user