2021-06-28 23:09:24 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, installShellFiles }:
|
2021-02-05 12:58:42 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "flavours";
|
2021-10-29 16:47:59 +02:00
|
|
|
version = "0.5.1";
|
2021-02-05 12:58:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Misterio77";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-29 16:47:59 +02:00
|
|
|
sha256 = "sha256-77nSz3J/9TsptpSHRFYY8mZAvn+o35gro2OwQkGzEC0=";
|
2021-02-05 12:58:42 +01:00
|
|
|
};
|
|
|
|
|
2021-06-30 03:47:07 +02:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
2021-05-09 03:12:25 +02:00
|
|
|
|
2021-10-29 16:47:59 +02:00
|
|
|
cargoSha256 = "sha256-UukLWMd8+wq5Y0dtePH312c1Nm4ztXPsoPHPN0nUb1w=";
|
2021-06-28 23:09:24 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2021-06-30 03:41:31 +02: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 23:09:24 +02:00
|
|
|
'';
|
2021-02-05 12:58:42 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|