mirror of
https://github.com/nmattia/niv.git
synced 2024-10-06 12:27:35 +03:00
Format nix files
This commit is contained in:
parent
13d2baf9ab
commit
68eb9f0bcf
10
default.nix
10
default.nix
@ -9,11 +9,11 @@ let
|
||||
builtins.path {
|
||||
filter =
|
||||
path: type:
|
||||
let
|
||||
relPath = pkgs.lib.removePrefix (toString src + "/") (toString path);
|
||||
accept = pkgs.lib.any (re: builtins.match re relPath != null) regexes;
|
||||
in
|
||||
accept
|
||||
let
|
||||
relPath = pkgs.lib.removePrefix (toString src + "/") (toString path);
|
||||
accept = pkgs.lib.any (re: builtins.match re relPath != null) regexes;
|
||||
in
|
||||
accept
|
||||
;
|
||||
inherit name;
|
||||
path = src;
|
||||
|
@ -28,9 +28,10 @@ let
|
||||
let
|
||||
ref =
|
||||
spec.ref or (
|
||||
if spec ? branch then "refs/heads/${spec.branch}" else
|
||||
if spec ? tag then "refs/tags/${spec.tag}" else
|
||||
abort "In git source '${name}': Please specify `ref`, `tag` or `branch`!");
|
||||
if spec ? branch then "refs/heads/${spec.branch}" else
|
||||
if spec ? tag then "refs/tags/${spec.tag}" else
|
||||
abort "In git source '${name}': Please specify `ref`, `tag` or `branch`!"
|
||||
);
|
||||
submodules = spec.submodules or false;
|
||||
submoduleArg =
|
||||
let
|
||||
|
Loading…
Reference in New Issue
Block a user