diff options
author | figsoda <figsoda@pm.me> | 2021-09-09 17:10:15 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2021-09-10 08:23:39 -0400 |
commit | 712f00a9a1d96346f315c4a2d0d0daa5e423f5fa (patch) | |
tree | a43622ade999d04f45f8ac270176071d312a4ae8 /pkgs/applications/graphics/menyoki | |
parent | e1f9d5fdacab743f1be513ed462010f23a983ffd (diff) |
menyoki: init at 1.5.3
Diffstat (limited to 'pkgs/applications/graphics/menyoki')
-rw-r--r-- | pkgs/applications/graphics/menyoki/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/menyoki/default.nix b/pkgs/applications/graphics/menyoki/default.nix new file mode 100644 index 0000000000000..0b4b80d648ac6 --- /dev/null +++ b/pkgs/applications/graphics/menyoki/default.nix @@ -0,0 +1,44 @@ +{ fetchFromGitHub +, installShellFiles +, lib +, pkg-config +, rustPlatform +, stdenv +, libX11 +, libXrandr +, withSki ? true +}: + +rustPlatform.buildRustPackage rec { + pname = "menyoki"; + version = "1.5.3"; + + src = fetchFromGitHub { + owner = "orhun"; + repo = pname; + rev = "v${version}"; + sha256 = "050c6c60il6cy0a8d3nw4z2cyp043912a7n4n44yjpmx047w7kc7"; + }; + + cargoSha256 = "0wwcda2w8jg3q132cvhdgfmjc0rz93fx6fai93g5w8br98aq9qzx"; + + nativeBuildInputs = [ installShellFiles ] + ++ lib.optional stdenv.isLinux pkg-config; + + buildInputs = lib.optionals stdenv.isLinux [ libX11 libXrandr ]; + + cargoBuildFlags = lib.optional (!withSki) "--no-default-features"; + + 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/"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ figsoda ]; + broken = stdenv.isDarwin; + }; +} |