From 9081fc2605fbdf70ccc0d24da0509e6bdb1e5a56 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Tue, 6 Dec 2022 10:23:26 +0100 Subject: [PATCH 13/31] gnu: Add rust-os-info-3. * gnu/packages/crates.io (rust-os-info-3): New variable. diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 92052b0a37..f61d705e82 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -38077,6 +38077,29 @@ (define-public rust-ordermap-0.3 under its new name.") (license (list license:asl2.0 license:expat)))) +(define-public rust-os-info-3 + (package + (name "rust-os-info") + (version "3.0.6") + (source (origin + (method url-fetch) + (uri (crate-uri "os_info" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1pbcf2in8i9w6zjzk6jmrd89gm5h7qpyqi3hvkl0axpzp1m57lmk")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-log" ,rust-log-0.4) + ("rust-serde" ,rust-serde-1) + ("rust-winapi" ,rust-winapi-0.3)))) + (home-page "https://github.com/stanislav-tkach/os_info") + (synopsis "Detect the operating system type and version") + (description "This package allows to detect the operating system type +and version.") + (license license:expat))) + (define-public rust-os-pipe-1 (package (name "rust-os-pipe") -- 2.38.1