Adding poc-helm-complex

This commit is contained in:
Patrick MARIE 2025-03-02 10:19:46 +01:00
parent 78894bd3b1
commit 2c99773126
Signed by: mycroft
GPG Key ID: BB519E5CD8E7BFA7
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{
pkgs ? import <nixpkgs> {},
}:
let
src = [(
pkgs.fetchgit {
url = "https://github.com/mycroft/nix-home-env.git";
hash = "sha256-QViSiFW9/YHtGGPWC673clmrnfNMA6DkaCn5MIUhDxM=";
})
(pkgs.fetchgit {
url = "https://github.com/mycroft/nix-home-env.git";
hash = "sha256-/hnVnswIJ6ojHqP8W2Wfz9egINIlLra0HvqCEiZ7vxg=";
rev = "fb64416268cd56381f7c13692a0a03db3e2b38cf";
})
];
out = {
env = pkgs.callPackage ./nix/manifest.nix {
inherit src;
};
};
in
out

View File

@ -0,0 +1,24 @@
{
pkgs ? import <nixpkgs> {},
src
}:
let
# patched contains path to store of this command's out
# use patched
patched = pkgs.runCommand "test0" {
src = src;
} ''
mkdir $out;
echo ${pkgs.lib.strings.concatStringsSep ":" src}
date > $out/bla
'';
in
pkgs.runCommand "test1" {
src2 = patched;
} ''
echo "step 2!!"
mkdir $out;
echo "src2 is $src2"
echo ${patched}
''