@@ -660,7 +660,7 @@ transformations, and locale-specific text handling.")
660
660
`(#:install-source? #f
661
661
#:tests? #f ; Disable tests and start with some manual testing
662
662
#:import-path " code.gitea.io/gitea"
663
- ; #:build-flags (list "-tags bindata sqlite sqlite_unlock_notify")
663
+ ; #:build-flags (list "-tags ' bindata sqlite sqlite_unlock_notify' ")
664
664
#:phases
665
665
(modify-phases %standard-phases
666
666
(add-after 'patch-source-shebangs 'unpatch-example-shebangs
@@ -675,22 +675,11 @@ transformations, and locale-specific text handling.")
675
675
((" #!/gnu/store/.*/bin/sh" ) " #!/bin/sh" ))))
676
676
(add-before 'build 'prepare-build
677
677
(lambda _
678
- (setenv " TAGS" " bindata sqlite sqlite_unlock_notify" )
679
- ; ))
680
- ; (replace 'build
681
- ; (lambda _
682
- ; (with-directory-excursion "src/code.gitea.io/gitea"
683
- ; (substitute* "Makefile"
684
- ; (("-mod=vendor") "")
685
- ; (("go-check generate") "go-check")
686
- ; (("(GO_DIRS := .) vendor(.*)" all first last)
687
- ; (string-append first last "\n"))
688
- ; )
689
- ; (invoke "make" "build")
690
- ; (invoke "make" "gitea")
691
- ; (invoke "make" "install")
692
- ; )
693
- ))
678
+ (setenv " TAGS" " bindata sqlite sqlite_unlock_notify" )))
679
+ (replace 'build
680
+ (lambda _
681
+ (with-directory-excursion " src/code.gitea.io/gitea"
682
+ (invoke " make" " build" ))))
694
683
(replace 'check
695
684
(lambda* (#:key tests? #:allow-other-keys)
696
685
(when tests?
@@ -709,18 +698,17 @@ transformations, and locale-specific text handling.")
709
698
(invoke " make" " test-mysql8" )
710
699
(invoke " make" " test-pgsql" )
711
700
))))
712
- ; (replace 'install
713
- ; (lambda _
714
- ; (with-directory-excursion "src/code.gitea.io/gitea"
715
- ; (invoke "make" "install"))))
701
+ (replace 'install
702
+ (lambda _
703
+ (with-directory-excursion " src/code.gitea.io/gitea"
704
+ (invoke " make" " install" ))))
716
705
(add-after 'install 'wrap-program
717
706
(lambda* (#:key outputs inputs #:allow-other-keys)
718
707
(let* ((out (assoc-ref outputs " out" ))
719
708
(bin (string-append out " /bin/gitea" ))
720
709
(git (assoc-ref inputs " git" )))
721
710
(wrap-program bin
722
- `(" PATH" " :" prefix (,(string-append git " /bin" )))))))
723
- )))
711
+ `(" PATH" " :" prefix (,(string-append git " /bin" ))))))))))
724
712
(native-inputs
725
713
(list go-github-com-stretchr-testify
726
714
node))
0 commit comments