Skip to content

Commit 6952c3e

Browse files
authored
Use selector function for stdenv (#1642)
1 parent 07bd27a commit 6952c3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flake.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@
9595
in
9696
{
9797
inherit src;
98-
stdenv =
99-
if isLinuxTarget
100-
then p.pkgsMusl.stdenv
101-
else p.stdenv;
98+
stdenv = q:
99+
if q.stdenv.targetPlatform.isLinux
100+
then q.pkgsMusl.stdenv
101+
else q.stdenv;
102102
strictDeps = true;
103103
buildInputs =
104104
[p.cacert]

0 commit comments

Comments
 (0)