summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLilah Tascheter <lilah@lunabee.space>2026-02-25 11:59:34 -0600
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-03-09 20:38:55 +0100
commit34c1d3ddba80acbb48b042ff12edc6a6e2a58731 (patch)
tree1c58c8d7c159a3d7fbf0e4f5196f5fa260b43138
parentb34ae60b3bd712b6a7dfe7402c670216e65bb5f7 (diff)
gnu: graphics: Add GodSVG.
* gnu/packages/graphics.scm (godsvg): New variable. Change-Id: Iac2af0dded92f8c11848cc5213784f569d1b1b8f Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
-rw-r--r--gnu/packages/graphics.scm55
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 452a0f2cfaf..75cbba556ea 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -500,6 +500,61 @@ Motion graphics has a wide variety of uses, including:
500") 500")
501 (license license:gpl3+))) 501 (license license:gpl3+)))
502 502
503(define-public godsvg
504 (package
505 (name "godsvg")
506 (version "1.0-alpha13")
507 (source (origin
508 (method git-fetch)
509 (uri (git-reference
510 (url "https://github.com/MewPurPur/GodSVG")
511 (commit (string-append "v" version))))
512 (file-name (git-file-name name version))
513 (sha256
514 (base32
515 "0p9vhvvgmydhpy7yl8hlzrjif2246ais8cv3ji093m4ggc5hnsxa"))))
516 (build-system gnu-build-system)
517 (arguments
518 (list #:tests? #f ; No tests exist.
519 #:phases
520 #~(modify-phases %standard-phases
521 ;; FPS is uncapped by default, resulting in the editor consuming
522 ;; all available resources while idling. Set a more reasonable
523 ;; default.
524 (add-after 'unpack 'cap-fps
525 (lambda _
526 (substitute* "src/config_classes/SaveData.gd"
527 (("(\"max_fps\": return |var max_fps := )0" _ pre)
528 (string-append pre "30")))))
529 (delete 'configure)
530 (replace 'build
531 (lambda* (#:key inputs native-inputs #:allow-other-keys)
532 (let ((native (or native-inputs inputs)))
533 (invoke (search-input-file native "bin/godot")
534 "--headless" "--export-pack" "Linux"
535 "godsvg.pck" "project.godot"))))
536 (replace 'install
537 (lambda* (#:key inputs #:allow-other-keys)
538 (let ((bin (string-append #$output "/bin"))
539 (share (string-append #$output "/share/godot")))
540 (mkdir-p bin)
541 (install-file "godsvg.pck" share)
542 (call-with-output-file (string-append bin "/godsvg")
543 (lambda (port)
544 (format port "#!~a~%exec ~a --main-pack ~a~%"
545 (search-input-file inputs "bin/bash")
546 (search-input-file inputs "bin/godot")
547 (string-append share "/godsvg.pck"))))
548 (chmod (string-append bin "/godsvg") #o755)))))))
549 (supported-systems (filter target-linux? %supported-systems))
550 (inputs (list bash godot))
551 (native-inputs (list godot))
552 (home-page "https://www.godsvg.com/")
553 (synopsis "Real-time SVG design tool")
554 (description "GodSVG is a structured WYSIWYG SVG editor allowing image
555editing and source editing simultaneously.")
556 (license license:expat)))
557
503(define-public autotrace 558(define-public autotrace
504 (package 559 (package
505 (name "autotrace") 560 (name "autotrace")