From 98899dddeb850ff6f67630632d96283a54858d96 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 9 May 2022 16:14:19 -0300 Subject: src/xyz/euandreh/latest.scm: Use overriden version instead of transformation The transformation route makes it check for the specific commit version on every build, instead of caching the result. --- src/xyz/euandreh/latest.scm | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/xyz/euandreh/latest.scm b/src/xyz/euandreh/latest.scm index 7601e39..3b7a22b 100644 --- a/src/xyz/euandreh/latest.scm +++ b/src/xyz/euandreh/latest.scm @@ -1,16 +1,20 @@ (define-module (xyz euandreh latest) - #:use-module (guix transformations) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module (gnu packages bittorrent)) (define-public mktorrent-latest - (let ((mktorrent-from-master - ((options->transformation - '((with-commit . "mktorrent=de7d011b35458de1472665f50b96c9cf6c303f39"))) - mktorrent))) - (package - (inherit mktorrent-from-master) - (name "mktorrent-latest")))) + (package + (inherit mktorrent) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/Rudde/mktorrent") + (commit "de7d011b35458de1472665f50b96c9cf6c303f39"))) + (sha256 + (base32 "1gsky1ijxrfsw07lvfjw4annjkdfpmnp8nnddi1wakbzqn6v5dwq")))))) (list mktorrent-latest) -- cgit v1.2.3