2021-06-28 21:09:24 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, installShellFiles }:
|
2021-02-05 11:58:42 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "flavours";
|
2021-11-03 02:45:42 +00:00
|
|
|
version = "0.5.2";
|
2021-02-05 11:58:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Misterio77";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-03 02:45:42 +00:00
|
|
|
sha256 = "sha256-P7F7PHP2EiZz6RgKbmqXRQOGG1P8TJ1emR0BEY9yBqk=";
|
2021-02-05 11:58:42 +00:00
|
|
|
};
|
|
|
|
|
2021-06-30 01:47:07 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
2021-05-09 01:12:25 +00:00
|
|
|
|
2021-11-03 02:45:42 +00:00
|
|
|
cargoSha256 = "sha256-QlCjAtQGITGrWNKQM39QPmv/MPZaaHfwdHjal2i1qv4=";
|
2021-06-28 21:09:24 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2021-06-30 01:41:31 +00:00
|
|
|
installShellCompletion --cmd flavours \
|
|
|
|
--zsh <($out/bin/flavours --completions zsh) \
|
|
|
|
--fish <($out/bin/flavours --completions fish) \
|
|
|
|
--bash <($out/bin/flavours --completions bash)
|
2021-06-28 21:09:24 +00:00
|
|
|
'';
|
2021-02-05 11:58:42 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An easy to use base16 scheme manager/builder that integrates with any workflow";
|
|
|
|
homepage = "https://github.com/Misterio77/flavours";
|
|
|
|
changelog = "https://github.com/Misterio77/flavours/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fortuneteller2k ];
|
|
|
|
};
|
|
|
|
}
|