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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
786 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
2019-09-16 15:20:05 +00:00
rustPlatform.buildRustPackage rec {
pname = "pastel";
version = "0.9.0";
2019-09-16 15:20:05 +00:00
src = fetchFromGitHub {
owner = "sharkdp";
repo = pname;
rev = "v${version}";
sha256 = "sha256-uK4HWC+uGiey+K0p8+Wi+Pi+U7b4k09b8iKF9BmTPcc=";
2019-09-16 15:20:05 +00:00
};
cargoSha256 = "sha256-5paHSrqU8tItD/CAbauj6KcW/mKsveOAfXjD/NUuFAc=";
2019-09-16 15:20:05 +00:00
2021-01-15 05:42:41 +00:00
buildInputs = lib.optional stdenv.isDarwin Security;
2019-09-16 15:20:05 +00:00
meta = with lib; {
2019-09-16 15:20:05 +00: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 15:20:05 +00:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ davidtwco ];
};
}