Fix output dir for guix build

This commit is contained in:
Tissevert 2022-07-23 18:32:27 +02:00
parent 3d9bc23a91
commit c6a84321d4
2 changed files with 16 additions and 12 deletions

View file

@ -1,5 +1,6 @@
LIB = unitJS
WEBAPP = index.html style.css main.js
ROOT = $(PREFIX)/var/www
all: $(WEBAPP)
@ -9,5 +10,6 @@ style.css: css
main.js: js/
sjw $(LIB:%=-I %) -o $@ $^
install:
cp $(WEBAPP) $(DESTDIR)
install: $(WEBAPP)
mkdir -p $(ROOT)
cp $(WEBAPP) $(ROOT)

View file

@ -6,8 +6,8 @@
(let
((%source-dir (dirname (current-filename)))
(SJW (load "/home/Bureau/sjw/SJW.scm"))
(UnitJS (load "/home/Bureau/unitJS/guix.scm")))
(SJW (load "/home/Bureau/sjw/SJW.scm"))
(UnitJS (load "/home/Bureau/unitJS/guix.scm")))
(package
(name "etoiles")
(version "devel")
@ -16,15 +16,17 @@
#:recursive? #t
#:select? (git-predicate %source-dir)))
(build-system gnu-build-system)
(native-inputs
(list
SJW
UnitJS))
(native-inputs
(list
SJW
UnitJS))
(arguments
'(#:phases
(modify-phases %standard-phases
(delete 'configure)
(delete 'check))))
`(#:make-flags
,#~(list (string-append "PREFIX=" #$output))
#:phases
(modify-phases %standard-phases
(delete 'configure)
(delete 'check))))
(home-page "https://git.marvid.fr/Tissevert/Étoiles")
(synopsis "A game webapp")
(description