2024-05-28 16:43:04 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-08-17 13:12:54 +00:00
|
|
|
source common.sh
|
|
|
|
|
2024-06-16 15:56:50 +00:00
|
|
|
clearStoreIfPossible
|
2016-08-17 13:12:54 +00:00
|
|
|
|
|
|
|
nix-build --no-out-link -E '
|
2024-11-01 13:56:50 +00:00
|
|
|
with import '"${config_nix}"';
|
2016-08-17 13:12:54 +00:00
|
|
|
|
|
|
|
mkDerivation {
|
|
|
|
name = "placeholders";
|
|
|
|
outputs = [ "out" "bin" "dev" ];
|
|
|
|
buildCommand = "
|
|
|
|
echo foo1 > $out
|
|
|
|
echo foo2 > $bin
|
|
|
|
echo foo3 > $dev
|
|
|
|
[[ $(cat ${placeholder "out"}) = foo1 ]]
|
|
|
|
[[ $(cat ${placeholder "bin"}) = foo2 ]]
|
|
|
|
[[ $(cat ${placeholder "dev"}) = foo3 ]]
|
|
|
|
";
|
|
|
|
}
|
|
|
|
'
|