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:
|
pkgs:
|
||||||
let
|
let
|
||||||
empty = pkgs.runCommand "empty" { } "mkdir $out";
|
|
||||||
pkg = path: args:
|
pkg = path: args:
|
||||||
let
|
let
|
||||||
p = pkgs.callPackage path args;
|
p = pkgs.callPackage path args;
|
||||||
in
|
in
|
||||||
if p.meta.available then p else empty;
|
if p.meta.available then p else pkgs.emptyDirectory;
|
||||||
in
|
in
|
||||||
rec
|
rec
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue