mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: mono@5.1.0: Enable resx2sr.
* gnu/packages/dotnet.scm (mono-5.1.0)[arguments]<#:phases>[build-resx2sr]: New phase. [install-resx2sr]: New phase. Change-Id: I15cd8990ad7aa63d91c0f90e0eb3ff84c4634ce5
This commit is contained in:
parent
d275764b89
commit
4a19a102e9
1 changed files with 21 additions and 0 deletions
|
@ -1066,6 +1066,27 @@ unused0:")))))
|
||||||
#$(add-external-repos
|
#$(add-external-repos
|
||||||
mono-5.1.0-external-repo-specs)
|
mono-5.1.0-external-repo-specs)
|
||||||
#$@prepare-mono-source-0))))
|
#$@prepare-mono-source-0))))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments mono-5.0.1)
|
||||||
|
((#:phases phases #~%standard-phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(add-after 'build 'build-resx2sr
|
||||||
|
(lambda* (#:key make-flags #:allow-other-keys)
|
||||||
|
(apply invoke "make" "-C" "mcs/tools/resx2sr" make-flags)))
|
||||||
|
(add-after 'install 'install-resx2sr
|
||||||
|
(lambda* (#:key make-flags #:allow-other-keys)
|
||||||
|
(apply invoke "make" "-C" "mcs/tools/resx2sr" "install" make-flags)
|
||||||
|
;; They don't install a wrapper script--but we need it for
|
||||||
|
;; bootstrapping MSBuild.
|
||||||
|
(let ((resx2sr (string-append #$output "/bin/resx2sr")))
|
||||||
|
(call-with-output-file resx2sr
|
||||||
|
(lambda (port)
|
||||||
|
(format port "#!/bin/sh
|
||||||
|
exec ~s ~s \"$@\"
|
||||||
|
"
|
||||||
|
(string-append #$output "/bin/mono")
|
||||||
|
(string-append #$output "/lib/mono/4.5/resx2sr.exe"))))
|
||||||
|
(chmod resx2sr #o755))))))))
|
||||||
(native-inputs (modify-inputs (package-native-inputs mono-5.0.1)
|
(native-inputs (modify-inputs (package-native-inputs mono-5.0.1)
|
||||||
(replace "mono" mono-5.0.1)))))
|
(replace "mono" mono-5.0.1)))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue