nixpkgs/pkgs/by-name/te/termbg/package.nix
Pablo Ovelleiro Corral 223ff708c1
termbg: init at 0.6.0
2024-11-23 09:33:32 +01:00

38 lines
770 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "termbg";
version = "0.6.0";
src = fetchFromGitHub {
owner = "dalance";
repo = "termbg";
rev = "v${version}";
hash = "sha256-KLWfdA7TArJqYoxIXQavaTNw/lmWQN9aeltxssIUEvk=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
meta = {
description = "Program for terminal background color detection";
homepage = "https://github.com/dalance/termbg";
changelog = "https://github.com/dalance/termbg/blob/${src.rev}/CHANGELOG.md";
license = with lib.licenses; [
mit
asl20
];
maintainers = with lib.maintainers; [ pinpox ];
mainProgram = "termbg";
};
}