timewall: init at 1.2.0 (#357968)
This commit is contained in:
commit
73f20f3d66
50
pkgs/by-name/ti/timewall/package.nix
Normal file
50
pkgs/by-name/ti/timewall/package.nix
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
rustPlatform,
|
||||||
|
installShellFiles,
|
||||||
|
libheif,
|
||||||
|
nix-update-script,
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "timewall";
|
||||||
|
version = "1.2.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "bcyran";
|
||||||
|
repo = "timewall";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-OVLiuYxldk59TbggKNfPtaADz0B6pZ91gP6B6aEjEV8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-2Ij5bv/M6QXXugMg+tvsXc/38hWzk9lrz990+o+3igI=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
buildInputs = [ libheif ];
|
||||||
|
|
||||||
|
SHELL_COMPLETIONS_DIR = "completions";
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
mkdir ${SHELL_COMPLETIONS_DIR}
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion \
|
||||||
|
--bash ${SHELL_COMPLETIONS_DIR}/timewall.bash \
|
||||||
|
--zsh ${SHELL_COMPLETIONS_DIR}/_timewall \
|
||||||
|
--fish ${SHELL_COMPLETIONS_DIR}/timewall.fish
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Apple dynamic HEIF wallpapers on GNU/Linux";
|
||||||
|
homepage = "https://github.com/bcyran/timewall";
|
||||||
|
changelog = "https://github.com/bcyran/timewall/releases/tag/${version}";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
mainProgram = "timewall";
|
||||||
|
maintainers = with lib.maintainers; [ bcyran ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user