aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-02-24 21:29:29 -0300
committerEuAndreh <eu@euandre.org>2021-02-24 21:29:29 -0300
commitbb9f0c1c6af37d33c53baf5946862a083296c870 (patch)
tree4990601ff27152cf084a40696bd26f651e48c372
parentUpdate package versions (diff)
downloadpackage-repository-bb9f0c1c6af37d33c53baf5946862a083296c870.tar.gz
package-repository-bb9f0c1c6af37d33c53baf5946862a083296c870.tar.xz
scripts/paku: Generate indented code that matches Guix's etc/indent.el
-rwxr-xr-xscripts/paku24
1 files changed, 13 insertions, 11 deletions
diff --git a/scripts/paku b/scripts/paku
index 83a4aa2..374ff2c 100755
--- a/scripts/paku
+++ b/scripts/paku
@@ -54,7 +54,7 @@ EOF
CHECK_INPUTS="
(inputs
- \`($INPUTS))"
+ \`($INPUTS))"
fi
cat <<EOF >>"$GUIX_OUT"
@@ -66,17 +66,19 @@ EOF
(source (origin
(method url-fetch)
(uri (string-append
- "https://git.euandreh.xyz/$NAME/snapshot/$NAME-"
- version
- ".tar.gz"))
+ "https://git.euandreh.xyz/$NAME/snapshot/$NAME-"
+ version
+ ".tar.gz"))
(sha256
- (base32
- "$SHA256"))))
+ (base32
+ "$SHA256"))))
(build-system gnu-build-system)$CHECK_INPUTS
- (arguments \`(#:make-flags (list (string-append "CC=" ,(cc-for-target))
- (string-append "PREFIX=" %output))
- #:phases (modify-phases %standard-phases
- (delete 'configure))))
+ (arguments \`(#:make-flags
+ (list (string-append "CC=" ,(cc-for-target))
+ (string-append "PREFIX=" %output))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure))))
(synopsis (file-append source "/description"))
(description (file-append source "/long-description"))
(home-page (string-append "https://" name ".euandreh.xyz"))
@@ -89,7 +91,7 @@ EOF
NAME="$(echo "$p" | base64 --decode | jq -r '.name')"
SUFFIX="$(echo "$p" | base64 --decode | jq -r '.suffix')"
- printf '\n %s%s' "$NAME" "$SUFFIX" >>"$GUIX_OUT"
+ printf '\n %s%s' "$NAME" "$SUFFIX" >>"$GUIX_OUT"
done
printf ')\n' >>"$GUIX_OUT"