diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2019-08-29 13:36:05 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2019-08-29 15:05:24 +0300 |
| commit | 3c9b315aaa266bb21ee10968a99470de19b704af (patch) | |
| tree | aea49f2d6b78edad911dd10fefce94d2221ad6a8 /gnu | |
| parent | c08f789d4df408bc299e0847e0c83bcfab7f6879 (diff) | |
gnu: Add rust-kernel32-sys.
* gnu/packages/crates-io.scm (rust-kernel32-sys): New variable.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/crates-io.scm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f5b03b1df65..a5aad52e21b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm | |||
| @@ -632,6 +632,36 @@ friction with idiomatic Rust structs to ease interopability.") | |||
| 632 | (license (list license:asl2.0 | 632 | (license (list license:asl2.0 |
| 633 | license:expat)))) | 633 | license:expat)))) |
| 634 | 634 | ||
| 635 | (define-public rust-kernel32-sys | ||
| 636 | (package | ||
| 637 | (name "rust-kernel32-sys") | ||
| 638 | (version "0.2.2") | ||
| 639 | (source | ||
| 640 | (origin | ||
| 641 | (method url-fetch) | ||
| 642 | (uri (crate-uri "kernel32-sys" version)) | ||
| 643 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 644 | (sha256 | ||
| 645 | (base32 | ||
| 646 | "1389av0601a9yz8dvx5zha9vmkd6ik7ax0idpb032d28555n41vm")))) | ||
| 647 | (build-system cargo-build-system) | ||
| 648 | (arguments | ||
| 649 | `(#:cargo-inputs | ||
| 650 | (("rust-winapi" ,rust-winapi-0.2) | ||
| 651 | ("rust-winapi-build" ,rust-winapi-build)) | ||
| 652 | #:phases | ||
| 653 | (modify-phases %standard-phases | ||
| 654 | (add-after 'unpack 'fix-Cargo-toml | ||
| 655 | (lambda _ | ||
| 656 | (substitute* "Cargo.toml" | ||
| 657 | ((", path =.* }") "}\n")) | ||
| 658 | #t))))) | ||
| 659 | (home-page "https://github.com/retep998/winapi-rs") | ||
| 660 | (synopsis "Function definitions for the Windows API library kernel32") | ||
| 661 | (description "Contains function definitions for the Windows API library | ||
| 662 | kernel32.") | ||
| 663 | (license license:expat))) | ||
| 664 | |||
| 635 | (define-public rust-lazy-static | 665 | (define-public rust-lazy-static |
| 636 | (package | 666 | (package |
| 637 | (name "rust-lazy-static") | 667 | (name "rust-lazy-static") |
