Flatten output hierarchy

The output subdirectories and package manifest were not in use.
This commit is contained in:
Emery Hemingway 2020-04-14 01:12:22 +05:30
父節點 025906c214
當前提交 18fc13d143
共有 1 個文件被更改,包括 1 次插入12 次删除

查看文件

@ -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" ];