1
0
Fork 0
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:
Antonio Gurgel 2023-11-16 18:12:21 -08:00
parent 1cdfed6c58
commit a90896c0b9

View file

@ -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
'';
};
};