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

26 lines
788 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
2019-09-16 16:20:05 +01:00
rustPlatform.buildRustPackage rec {
pname = "pastel";
2021-07-10 22:01:25 +01:00
version = "0.8.1";
2019-09-16 16:20:05 +01:00
src = fetchFromGitHub {
owner = "sharkdp";
repo = pname;
rev = "v${version}";
2021-07-10 22:01:25 +01:00
sha256 = "12n1a9j61r4spx0zi2kk85nslv11j1s510asxqvj92ggqhr2s3sq";
2019-09-16 16:20:05 +01:00
};
2021-07-10 22:01:25 +01:00
cargoSha256 = "12zachbg78ajx1n1mqp53rd00dzcss5cqhsq0119lalzc8b5zkrn";
2019-09-16 16:20:05 +01:00
2021-01-15 05:42:41 +00:00
buildInputs = lib.optional stdenv.isDarwin Security;
2019-09-16 16:20:05 +01:00
meta = with lib; {
2019-09-16 16:20:05 +01:00
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 16:20:05 +01:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ davidtwco ];
};
}