polylith: use structuredAttrs instead of passAsFile
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user