feat(readTree): Add special here argument.
It's convenient for depending on sub-tree members of the current file as well as gives access to siblings. Change-Id: I74234cec6566177d88d3bc8507fa3f6ec789adb8 Reviewed-on: https://cl.snix.dev/c/snix/+/30098 Reviewed-by: adis bladis <adisbladis@gmail.com> Tested-by: besadii
This commit is contained in:
parent
39b3e2c410
commit
a04c73ca83
7 changed files with 39 additions and 15 deletions
|
|
@ -1,10 +1,10 @@
|
|||
# Nix helpers for projects under //snix
|
||||
{ pkgs, lib, depot, ... }:
|
||||
{ pkgs, lib, depot, here, ... }:
|
||||
|
||||
let
|
||||
# Load the crate2nix crate tree.
|
||||
crates = pkgs.callPackage ./Cargo.nix {
|
||||
defaultCrateOverrides = depot.snix.utils.defaultCrateOverridesForPkgs pkgs;
|
||||
defaultCrateOverrides = here.utils.defaultCrateOverridesForPkgs pkgs;
|
||||
};
|
||||
|
||||
# Cargo dependencies to be used with nixpkgs rustPlatform functions.
|
||||
|
|
@ -30,9 +30,9 @@ let
|
|||
protos = pkgs.symlinkJoin {
|
||||
name = "snix-all-protos";
|
||||
paths = [
|
||||
depot.snix.build.protos.protos
|
||||
depot.snix.castore.protos.protos
|
||||
depot.snix.store.protos.protos
|
||||
here.build.protos.protos
|
||||
here.castore.protos.protos
|
||||
here.store.protos.protos
|
||||
];
|
||||
};
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ in
|
|||
|
||||
crate2nix-check =
|
||||
let
|
||||
crate2nix-check = depot.snix.utils.mkCrate2nixCheck ./Cargo.nix;
|
||||
crate2nix-check = here.utils.mkCrate2nixCheck ./Cargo.nix;
|
||||
in
|
||||
crate2nix-check.command.overrideAttrs {
|
||||
meta.ci.extraSteps = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue