aboutsummaryrefslogtreecommitdiff
path: root/.guix/modules
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-08-16 06:57:30 +0300
committerFrederick Muriuki Muriithi2023-08-16 06:57:30 +0300
commit277297d9a804e09137493bd9e1613df94f154dc0 (patch)
tree4bf6d2e9c0599d00cdc31420911641d32d17e29f /.guix/modules
parentd3e3963e2fae7035128ed9a10513907e20f8bdf4 (diff)
downloadgn-auth-277297d9a804e09137493bd9e1613df94f154dc0.tar.gz
Do not use current-filename.
For some reason, current-filename does not work with Guix channels. This change was provided by Arun Isaac<arunisaac@systemreboot.net> but I could not seem to figure out how to download the patches from protonmail therefore I give the credit here.
Diffstat (limited to '.guix/modules')
-rw-r--r--.guix/modules/gn-auth.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/.guix/modules/gn-auth.scm b/.guix/modules/gn-auth.scm
index 6bc63ed..8d52f17 100644
--- a/.guix/modules/gn-auth.scm
+++ b/.guix/modules/gn-auth.scm
@@ -21,7 +21,7 @@
;; Packages from guix-bioinformatics
#:use-module (gn packages python-web))
-(define %source-dir (dirname (dirname (dirname (dirname (dirname (current-filename)))))))
+(define %source-dir (dirname (dirname (current-source-directory))))
(define vcs-file?
(or (git-predicate %source-dir)
@@ -31,7 +31,8 @@
(package
(name "gn-auth")
(version "0.1.0-git")
- (source (local-file %source-dir "gn-auth-checkout"
+ (source (local-file "../.."
+ "gn-auth-checkout"
#:recursive? #t
#:select? vcs-file?))
(build-system python-build-system)