Adding poc-helm-complex
This commit is contained in:
parent
78894bd3b1
commit
2c99773126
23
poc-helm-complex/default.nix
Normal file
23
poc-helm-complex/default.nix
Normal 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
|
24
poc-helm-complex/nix/manifest.nix
Normal file
24
poc-helm-complex/nix/manifest.nix
Normal 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}
|
||||
''
|
Loading…
x
Reference in New Issue
Block a user