polylith: use structuredAttrs instead of passAsFile

This commit is contained in:
Stefan Frijters
2026-03-23 17:14:45 +01:00
parent fdc7b8f7b3
commit 2e4ddbd2fa
+3 -2
View File
@@ -17,7 +17,6 @@ stdenv.mkDerivation (finalAttrs: {
dontUnpack = true;
passAsFile = [ "polyWrapper" ];
polyWrapper = ''
#!${runtimeShell}
ARGS=""
@@ -32,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: {
runHook preInstall
mkdir -p $out/bin
cp "$polyWrapperPath" $out/bin/poly
printf "%s" "$polyWrapper" > $out/bin/poly
chmod a+x $out/bin/poly
runHook postInstall
@@ -47,6 +46,8 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstallCheck
'';
__structuredAttrs = true;
meta = {
description = "Tool used to develop Polylith based architectures in Clojure";
mainProgram = "poly";