nixpkgs/pkgs/applications/misc/pastel/default.nix

27 lines
828 B
Nix
Raw Normal View History

2019-09-16 18:20:05 +03:00
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "pastel";
2020-03-03 12:50:10 +03:00
version = "0.7.1";
2019-09-16 18:20:05 +03:00
src = fetchFromGitHub {
owner = "sharkdp";
repo = pname;
rev = "v${version}";
2020-03-03 12:50:10 +03:00
sha256 = "1xrg25w175m2iz7q9v7c05a0p0v5rr71vd4m3v6p0lqvij3sih4s";
2019-09-16 18:20:05 +03:00
};
2020-03-03 12:50:10 +03:00
cargoSha256 = "17rw9wp9mfv38h0azdjwl60bxdknb5q84ia0a2r1vi91gz6275cs";
2019-09-16 18:20:05 +03:00
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
meta = with stdenv.lib; {
description = "A command-line tool to generate, analyze, convert and manipulate colors";
homepage = "https://github.com/sharkdp/pastel";
changelog = "https://github.com/sharkdp/pastel/releases/tag/v${version}";
2019-09-16 18:20:05 +03:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ davidtwco ];
platforms = platforms.all;
};
}