3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/pastel/default.nix

26 lines
748 B
Nix
Raw Normal View History

2019-09-16 16:20:05 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "pastel";
version = "0.6.1";
2019-09-16 16:20:05 +01:00
src = fetchFromGitHub {
owner = "sharkdp";
repo = pname;
rev = "v${version}";
sha256 = "1c47bph1qraq3g0g5bp23jqlz7qdn4f8vh264y937jz17avvacx5";
2019-09-16 16:20:05 +01:00
};
cargoSha256 = "1hkqahsrhmgcpgp0pvfpc0wmwqivnqylsxzjrz63k1s9ssdv9syy";
2019-09-16 16:20:05 +01: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;
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ davidtwco ];
platforms = platforms.all;
};
}