mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
me likely the pipes
This commit is contained in:
parent
6cfde7d480
commit
8f8c551503
1 changed files with 9 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
inputs: final: prev:
|
inputs: final: prev:
|
||||||
let
|
let
|
||||||
inherit (builtins) listToAttrs substring;
|
inherit (builtins) listToAttrs substring filter;
|
||||||
inherit (final)
|
inherit (final)
|
||||||
concatStringsSep
|
concatStringsSep
|
||||||
hasSuffix
|
hasSuffix
|
||||||
|
@ -67,10 +67,14 @@ let
|
||||||
flakeVer =
|
flakeVer =
|
||||||
flake: "${flake.shortRev or flake.dirtyShortRev}-${mkDate (toString flake.lastModifiedDate)}";
|
flake: "${flake.shortRev or flake.dirtyShortRev}-${mkDate (toString flake.lastModifiedDate)}";
|
||||||
|
|
||||||
isNixFile = p: hasSuffix ".nix" p;
|
isNixFile = p: p |> hasSuffix ".nix";
|
||||||
isDefaultNixFile = p: hasSuffix "default.nix" p;
|
isDefaultNixFile = p: p |> hasSuffix "default.nix";
|
||||||
filterNotDefaultNixFile = paths: builtins.filter (p: !(isDefaultNixFile p) && (isNixFile p)) paths;
|
# filterNotDefaultNixFile = paths: filter (p: !(isDefaultNixFile p) && (isNixFile p)) paths;
|
||||||
listNixFilesRecursive = dir: filterNotDefaultNixFile (listFilesRecursive dir);
|
filterNotDefaultNixFile = paths:
|
||||||
|
paths |> filter (p: !(isDefaultNixFile p) && (isNixFile p));
|
||||||
|
# listNixFilesRecursive = dir: filterNotDefaultNixFile (listFilesRecursive dir);
|
||||||
|
listNixFilesRecursive = dir:
|
||||||
|
dir |> listFilesRecursive |> filterNotDefaultNixFile;
|
||||||
|
|
||||||
# defaultLinuxPackage = flake: flake.packages.x86_64-linux.default;
|
# defaultLinuxPackage = flake: flake.packages.x86_64-linux.default;
|
||||||
# defaultPackageGeneric = system: flake: "${flake}.packages.${system}.default";
|
# defaultPackageGeneric = system: flake: "${flake}.packages.${system}.default";
|
||||||
|
|
Loading…
Reference in a new issue