mirror of
https://git.sr.ht/~goorzhel/turboprop
synced 2024-12-14 11:37:37 +00:00
Finally build the whole flake
This commit is contained in:
parent
1cdfed6c58
commit
a90896c0b9
1 changed files with 5 additions and 19 deletions
24
flake.nix
24
flake.nix
|
@ -49,26 +49,12 @@
|
|||
version = "0.0.1";
|
||||
releases = with pkgs.lib; attrsets.collect isDerivation releases;
|
||||
src = ./.;
|
||||
buildPhase = ''
|
||||
mkdir $out
|
||||
|
||||
echo $releases
|
||||
|
||||
for dir in $src/releases/*; do
|
||||
ns=$(basename $dir)
|
||||
mkdir -p $out/$ns
|
||||
|
||||
for path in $dir/*; do
|
||||
name=$(basename $path)
|
||||
|
||||
# TODO: how do I recursively build a derivation?
|
||||
done
|
||||
|
||||
done
|
||||
'';
|
||||
phases = ["installPhase"];
|
||||
installPhase = ''
|
||||
# ls -lR $out
|
||||
exit 1
|
||||
mkdir $out
|
||||
for rel in $releases; do
|
||||
ln -s $rel $out
|
||||
done
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue