Read local source for package

This commit is contained in:
TakeV 2023-07-06 21:54:37 -07:00
parent 0d5f6e6386
commit e5d6d9cfb2
Signed by untrusted user: TakeV
GPG key ID: A64F41345C7400AF

View file

@ -3,17 +3,26 @@
((guix licenses) #:prefix license:) ((guix licenses) #:prefix license:)
(guix download) (guix download)
(guix build-system gnu) (guix build-system gnu)
(guix gexp)
(gnu packages) (gnu packages)
(gnu packages autotools) (gnu packages autotools)
(gnu packages guile) (gnu packages guile)
(gnu packages guile-xyz) (gnu packages guile-xyz)
(gnu packages pkg-config) (gnu packages pkg-config)
(gnu packages texinfo)) (gnu packages texinfo)
(srfi srfi-1))
(define (keep-file? file stat)
(not (any (lambda (my-string)
(string-contains file my-string))
(list ".git" ".dir-locals.el" "guix.scm"))))
(package (package
(name "gib-gab-gob") (name "gib-gab-gob")
(version "0.1") (version "0.1")
(source "./gib-gab-gob-0.1.tar.gz") (source (local-file (dirname (current-filename))
#:recursive? #t
#:select? keep-file?))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:modules `(#:modules