mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-13 02:20:53 +02:00
gnu: Add mono-system-collections-immutable-bootstrap.
* gnu/packages/dotnet.scm (mono-system-collections-immutable-bootstrap): New variable. Change-Id: Ib3790af5a13f50c401204cb72cd107cc4561f737
This commit is contained in:
parent
251fa102b4
commit
e365fc68f3
1 changed files with 48 additions and 0 deletions
|
@ -1933,3 +1933,51 @@ most of the heavy lifting.")
|
|||
(find-files gac "^System[.]Windows[.]Forms[.]dll$")))))))))))
|
||||
|
||||
(define-public mono mono-6.12.0)
|
||||
|
||||
(define mono-system-collections-immutable-bootstrap
|
||||
(package
|
||||
(name "mono-system-collections-immutable-bootstrap")
|
||||
(version
|
||||
(package-version mono))
|
||||
(source
|
||||
(package-source mono))
|
||||
(build-system gnu-build-system)
|
||||
(native-inputs
|
||||
(list mono))
|
||||
(arguments
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(delete 'bootstrap)
|
||||
(add-after 'unpack 'prepare
|
||||
(lambda _
|
||||
(chdir "external/corefx/src/System.Collections.Immutable/src")
|
||||
(substitute* "../../Common/src/System/SR.cs"
|
||||
;; I don't want to drag System.Security.AccessControl into the bootstrap path.
|
||||
(("new ResourceManager[(]ResourceType[)]")
|
||||
"new ResourceManager(\"System.Collections.Immutable\", typeof(SR).Assembly)"))))
|
||||
(delete 'configure)
|
||||
(replace 'build
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(invoke "resx2sr" "-o" "SR.cs" "-n" "System.SR"
|
||||
"--warn-mismatch"
|
||||
"Resources/Strings.resx")
|
||||
(apply invoke "mcs"
|
||||
"-target:library"
|
||||
"-langversion:7.2"
|
||||
;;; mono can't do it: "-d:FEATURE_ITEMREFAPI"
|
||||
"-out:System.Collections.Immutable.dll"
|
||||
"../../Common/src/System/Runtime/Versioning/NonVersionableAttribute.cs"
|
||||
"../../Common/src/System/SR.cs"
|
||||
(find-files "." "\\.cs$"))))
|
||||
(delete 'check)
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((lib-dir (string-append #$output "/lib/mono/4.5")))
|
||||
(mkdir-p lib-dir)
|
||||
(install-file "System.Collections.Immutable.dll"
|
||||
lib-dir)))))))
|
||||
(synopsis "System.Collections.Immutable library for bootstrapping")
|
||||
(description "This package builds the System.Collections.Immutable library from
|
||||
the source code included within the Mono source tree.")
|
||||
(home-page "https://dot.net/")
|
||||
(license license:expat)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue