1 { lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-kr2aLRd143ksVx42ZDO/NILydObinn3AwPCniXVVmY0=";
14 cargoHash = "sha256-+Cw/aAXkSbYLqc7TGWsMUJNo88v0s1Cq1m4V84j3gXE=";
16 buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
19 description = "Command-line tool to generate, analyze, convert and manipulate colors";
20 homepage = "https://github.com/sharkdp/pastel";
21 changelog = "https://github.com/sharkdp/pastel/releases/tag/v${version}";
22 license = with licenses; [ asl20 /* or */ mit ];
23 maintainers = with maintainers; [ davidtwco ];
24 mainProgram = "pastel";