diff --git a/flake.nix b/flake.nix index 19d40dd..1472bbd 100644 --- a/flake.nix +++ b/flake.nix @@ -30,22 +30,17 @@ sourceRoot = "."; - #preFixup = let libPath = lib.makeLibraryPath [ - # cairo - # libgcc - #]; in '' - # patchelf \ - # --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ - # --set-rpath "${libPath}" \ - # $out/bin/CoolTerm - #''; - installPhase = '' runHook preInstall + + mkdir -p $out/opt/ + cp -r ./source/* $out/opt/ + for i in `ls -1 "./source/CoolTerm Libs/"`; do install -m755 -D "./source/CoolTerm Libs/$i" $out/lib/$i done install -m755 -D "./source/CoolTerm" $out/bin/CoolTerm + runHook postInstall '';