3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/menyoki/default.nix

45 lines
1 KiB
Nix
Raw Normal View History

2021-09-09 22:10:15 +01:00
{ fetchFromGitHub
, installShellFiles
, lib
, pkg-config
, rustPlatform
, stdenv
, libX11
, libXrandr
, withSki ? true
}:
rustPlatform.buildRustPackage rec {
pname = "menyoki";
2021-10-23 02:26:15 +01:00
version = "1.5.5";
2021-09-09 22:10:15 +01:00
src = fetchFromGitHub {
owner = "orhun";
repo = pname;
rev = "v${version}";
2021-10-23 02:26:15 +01:00
sha256 = "sha256-wEPt96z/odQ05hosN+GB5KLsCu8onR9WWamofJayhwU=";
2021-09-09 22:10:15 +01:00
};
2021-10-23 02:26:15 +01:00
cargoSha256 = "sha256-nwxBreouL3Z47zHSH+Y/ej7KU2/bXyMQ+Tb7R4U+yKk=";
2021-09-09 22:10:15 +01:00
nativeBuildInputs = [ installShellFiles ]
++ lib.optional stdenv.isLinux pkg-config;
buildInputs = lib.optionals stdenv.isLinux [ libX11 libXrandr ];
2021-11-16 13:35:09 +00:00
buildNoDefaultFeatures = !withSki;
2021-09-09 22:10:15 +01:00
postInstall = ''
installManPage man/*
installShellCompletion completions/menyoki.{bash,fish,zsh}
'';
meta = with lib; {
description = "Screen{shot,cast} and perform ImageOps on the command line";
homepage = "https://menyoki.cli.rs/";
2021-10-23 02:26:15 +01:00
changelog = "https://github.com/orhun/menyoki/blob/v${version}/CHANGELOG.md";
2021-09-09 22:10:15 +01:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ figsoda ];
};
}