Flatten output hierarchy
The output subdirectories and package manifest were not in use.
This commit is contained in:
parent
025906c214
commit
18fc13d143
13
flake.nix
13
flake.nix
|
@ -14,7 +14,6 @@
|
|||
value = localPackages.stdenvNoCC.mkDerivation {
|
||||
pname = name;
|
||||
inherit (value) version;
|
||||
outputs = [ "out" "manifest" ];
|
||||
preferLocalBuild = true;
|
||||
src = localPackages.fetchurl {
|
||||
url = "${baseUrl}${name}/${value.version}.tar.xz";
|
||||
|
@ -24,18 +23,8 @@
|
|||
dontBuild = true;
|
||||
installPhase = ''
|
||||
find . -type f | while read FILE; do
|
||||
case $FILE in
|
||||
*.a | *.o) install -Dm444 -t $out/lib $FILE;;
|
||||
*.so) install -Dm555 -t $out/lib $FILE;;
|
||||
*.tar) install -Dm444 -t $out/tar $FILE;;
|
||||
*) install -Dm555 -t $out/bin $FILE;;
|
||||
esac
|
||||
install -Dm444 -t $out $FILE
|
||||
done
|
||||
|
||||
local drv=$out
|
||||
echo -n '[' >> $manifest
|
||||
find $out/ -type f -printf ',{mapKey= "%f",mapValue="%p"}' >> $manifest
|
||||
echo -n ']' >> $manifest
|
||||
'';
|
||||
meta = {
|
||||
license = [ "LicenseRef-Genode" ];
|
||||
|
|
Loading…
Reference in New Issue