From adec593ee15acd235914c8bdf0f23945894a678b Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 9 Feb 2021 23:05:12 +0100 Subject: [PATCH] gnu: Add rust-cassowary-0.3. * gnu/packages/crates-io.scm (rust-cassowary-0.3): New variable. --- gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 6d9b8f1ea5..7ee12bfdf1 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -5610,6 +5610,31 @@ metadata}.") used in argon2rs' bench suite.") (license license:wtfpl2))) +(define-public rust-cassowary-0.3 + (package + (name "rust-cassowary") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "cassowary" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0lvanj0gsk6pc1chqrh4k5k0vi1rfbgzmsk46dwy3nmrqyw711nz")))) + (build-system cargo-build-system) + (arguments `(#:skip-build? #t)) + (home-page "https://github.com/dylanede/cassowary-rs") + (synopsis + "Implementation of the Cassowary linear constraint solving algorithm") + (description + "This package provides a Rust implementation of the Cassowary linear +constraint solving algorithm. + +The Cassowary algorithm is designed for naturally laying out user interfaces +using linear constraints, like ``this button must line up with this text +box''.") + (license (list license:expat license:asl2.0)))) + (define-public rust-cast-0.2 (package (name "rust-cast")