From dfc26a17c6c1a05c4bd33a74c3ff0685104a5589 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Tue, 3 Sep 2024 21:07:36 -0300 Subject: [PATCH] packages: wayneko: Use git-version for versioning --- radix/packages/toys.scm | 60 +++++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/radix/packages/toys.scm b/radix/packages/toys.scm index 7a6583c..8b41c9b 100644 --- a/radix/packages/toys.scm +++ b/radix/packages/toys.scm @@ -10,34 +10,36 @@ #:use-module ((guix licenses) #:prefix license:)) (define-public wayneko - (package - (name "wayneko") - (version "unknown") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://codeberg.org/look/wayneko") - (commit "cb3668e42562a5b022a02af099de7faf122c27bf"))) - (sha256 - (base32 - "1vk7b4z4z6alksglw6jnp8rh5qz90h0sm77031iwwg8ha9kp1n9s")))) - (build-system gnu-build-system) - (arguments - (list #:make-flags - #~(list (string-append "CC=" #$(cc-for-target)) - (string-append "PREFIX=" #$output)) - #:phases - #~(modify-phases %standard-phases - (delete 'configure) - (delete 'check)))) - (inputs - (list wayland - pkg-config - pixman)) - (home-page "https://codeberg.org/look/wayneko") - (synopsis "The cute oneko cat chasing your mouse pointer, but now on + (let ((commit "cb3668e42562a5b022a02af099de7faf122c27bf") + (revision "0")) + (package + (name "wayneko") + (version (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/look/wayneko") + (commit "cb3668e42562a5b022a02af099de7faf122c27bf"))) + (sha256 + (base32 + "1vk7b4z4z6alksglw6jnp8rh5qz90h0sm77031iwwg8ha9kp1n9s")))) + (build-system gnu-build-system) + (arguments + (list #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "PREFIX=" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (delete 'check)))) + (inputs + (list wayland + pkg-config + pixman)) + (home-page "https://codeberg.org/look/wayneko") + (synopsis "The cute oneko cat chasing your mouse pointer, but now on wayland.") - (description "The cute oneko cat chasing your mouse pointer, but now on + (description "The cute oneko cat chasing your mouse pointer, but now on wayland.") - (license license:gpl3))) + (license license:gpl3))))