summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-08-29 13:36:05 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-08-29 15:05:24 +0300
commit3c9b315aaa266bb21ee10968a99470de19b704af (patch)
treeaea49f2d6b78edad911dd10fefce94d2221ad6a8 /gnu
parentc08f789d4df408bc299e0847e0c83bcfab7f6879 (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.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f5b03b1df6..a5aad52e21 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.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-kernel32-sys
+ (package
+ (name "rust-kernel32-sys")
+ (version "0.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "kernel32-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1389av0601a9yz8dvx5zha9vmkd6ik7ax0idpb032d28555n41vm"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-winapi" ,rust-winapi-0.2)
+ ("rust-winapi-build" ,rust-winapi-build))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-Cargo-toml
+ (lambda _
+ (substitute* "Cargo.toml"
+ ((", path =.* }") "}\n"))
+ #t)))))
+ (home-page "https://github.com/retep998/winapi-rs")
+ (synopsis "Function definitions for the Windows API library kernel32")
+ (description "Contains function definitions for the Windows API library
+kernel32.")
+ (license license:expat)))
+
(define-public rust-lazy-static
(package
(name "rust-lazy-static")