gnu: moonfish: Update to 0-2.fb2cb4f.
* gnu/packages/games.scm (moonfish): Update to 0-2.fb2cb4f. [arguments]: Use upstream's makefile for building and installing. Install tools into the "out" output instead of the "tools" output. [outputs]: Remove "tools". Change-Id: I0f098b02633d397fe1fef67863c3cd5b1db19214 Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
parent
62314e54d1
commit
2ba3bd786e
1 changed files with 8 additions and 25 deletions
|
@ -10618,8 +10618,8 @@ ChessX.")
|
||||||
(license license:gpl3+))))
|
(license license:gpl3+))))
|
||||||
|
|
||||||
(define-public moonfish
|
(define-public moonfish
|
||||||
(let ((commit "4f8829009e8c26e6a878261e0bc4c7e7617ef6b6")
|
(let ((commit "fb2cb4f53876b1b0c6060464e0dd5a05ab00e502")
|
||||||
(revision "1"))
|
(revision "2"))
|
||||||
(package
|
(package
|
||||||
(name "moonfish")
|
(name "moonfish")
|
||||||
(version (git-version "0" revision commit))
|
(version (git-version "0" revision commit))
|
||||||
|
@ -10630,34 +10630,17 @@ ChessX.")
|
||||||
(commit commit)))
|
(commit commit)))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1ksg42x9cyn3pbfryy9raqb355k47cqcisascpy157c3cgdr2z60"))
|
"1rbhdahp0s2qm1zi7lpr0bb6zq02y76fc9d9nc2k5n03zh2as97i"))
|
||||||
(file-name (git-file-name name version))))
|
(file-name (git-file-name name version))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:make-flags
|
#:make-flags #~(list (string-append "CC=" #$(cc-for-target))
|
||||||
#~(list (string-append "CC=" #$(cc-for-target)))
|
(string-append "PREFIX=" %output))
|
||||||
#:tests? #f ;no check target
|
#:tests? #f ;no check target
|
||||||
#:phases
|
#:phases #~(modify-phases %standard-phases
|
||||||
#~(modify-phases %standard-phases
|
(delete 'configure)))) ;no configure script
|
||||||
(delete 'configure) ;no configure script
|
|
||||||
(replace 'install ;no 'install' target
|
|
||||||
(lambda _
|
|
||||||
(let* ((out-bin (string-append #$output "/bin"))
|
|
||||||
(tools-bin (string-append #$output:tools "/bin"))
|
|
||||||
(tool (string-append tools-bin "/moonfish-")))
|
|
||||||
(mkdir-p out-bin)
|
|
||||||
(mkdir-p tools-bin)
|
|
||||||
(copy-file "moonfish"
|
|
||||||
(string-append out-bin "/moonfish"))
|
|
||||||
(copy-file "play"
|
|
||||||
(string-append tool "play"))
|
|
||||||
(copy-file "lichess"
|
|
||||||
(string-append tool "lichess"))
|
|
||||||
(copy-file "analyse"
|
|
||||||
(string-append tool "analyse"))))))))
|
|
||||||
(inputs (list bearssl cjson))
|
(inputs (list bearssl cjson))
|
||||||
(outputs '("out" "tools"))
|
|
||||||
(home-page "https://git.sr.ht/~zamfofex/moonfish")
|
(home-page "https://git.sr.ht/~zamfofex/moonfish")
|
||||||
(synopsis "Simple chess engine written in C")
|
(synopsis "Simple chess engine written in C")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue