From 940036c22fb21f24d72c5811bdddfe13a750d734 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 31 Aug 2022 19:10:04 -0400 Subject: guix: Use current directory source when building. --- guix.scm | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/guix.scm b/guix.scm index 2aec180..54b74d7 100644 --- a/guix.scm +++ b/guix.scm @@ -30,6 +30,7 @@ (use-modules (guix packages) (guix licenses) + (guix gexp) (guix git-download) (guix build-system gnu) (gnu packages) @@ -39,17 +40,14 @@ (gnu packages pkg-config) (gnu packages texinfo)) +(define %source-dir (dirname (current-filename))) + (package (name "haunt") - (version "0.2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "git://dthompson.us/haunt.git") - (commit "f0a7c2b14a201448432d3564d851ee0686d5b1b1"))) - (sha256 - (base32 - "1dnzsw18blhr8admw48zbl3ilz3iiqmb149i37y820h0imqfli0v")))) + (version "0.2.6") + (source (local-file %source-dir + #:recursive? #t + #:select? (git-predicate %source-dir))) (build-system gnu-build-system) (arguments '(#:phases -- cgit v1.2.3