use emptyDirectory instead of runCommand

This commit is contained in:
Sean Buckley 2022-03-29 14:31:30 -04:00
parent 935d3f4467
commit b46ef672a7

View file

@ -1,11 +1,10 @@
pkgs:
let
empty = pkgs.runCommand "empty" { } "mkdir $out";
pkg = path: args:
let
p = pkgs.callPackage path args;
in
if p.meta.available then p else empty;
if p.meta.available then p else pkgs.emptyDirectory;
in
rec
{