2021-07-03 03:11:41 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, installShellFiles }:
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "flavours";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "0.6.1";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Misterio77";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-Q2YW9oFqzkmWscoE4p9E43bo1/4bQrTnd8tvPsJqJyQ=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
cargoSha256 = "sha256-IrVcd8ilWbaigGMqT+kaIW3gnE+m+Ik5IyhQ4zPlyPE=";
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd flavours \
|
|
|
|
--zsh <($out/bin/flavours --completions zsh) \
|
|
|
|
--fish <($out/bin/flavours --completions fish) \
|
|
|
|
--bash <($out/bin/flavours --completions bash)
|
|
|
|
'';
|
2021-02-13 14:23:35 +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 ];
|
|
|
|
};
|
|
|
|
}
|