mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
use emptyDirectory instead of runCommand
This commit is contained in:
parent
935d3f4467
commit
b46ef672a7
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue