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 {
|
value = localPackages.stdenvNoCC.mkDerivation {
|
||||||
pname = name;
|
pname = name;
|
||||||
inherit (value) version;
|
inherit (value) version;
|
||||||
outputs = [ "out" "manifest" ];
|
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
src = localPackages.fetchurl {
|
src = localPackages.fetchurl {
|
||||||
url = "${baseUrl}${name}/${value.version}.tar.xz";
|
url = "${baseUrl}${name}/${value.version}.tar.xz";
|
||||||
|
@ -24,18 +23,8 @@
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
find . -type f | while read FILE; do
|
find . -type f | while read FILE; do
|
||||||
case $FILE in
|
install -Dm444 -t $out $FILE
|
||||||
*.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
|
|
||||||
done
|
done
|
||||||
|
|
||||||
local drv=$out
|
|
||||||
echo -n '[' >> $manifest
|
|
||||||
find $out/ -type f -printf ',{mapKey= "%f",mapValue="%p"}' >> $manifest
|
|
||||||
echo -n ']' >> $manifest
|
|
||||||
'';
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
license = [ "LicenseRef-Genode" ];
|
license = [ "LicenseRef-Genode" ];
|
||||||
|
|
Loading…
Reference in New Issue