diff options
author | lumi <lumi@pew.im> | 2019-10-27 15:01:59 +0100 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2019-10-27 22:44:07 -0700 |
commit | ac2d736b3ad8c3fec43a5d3ae2389a2602645400 (patch) | |
tree | d95c7adc75fd312545003d6144835f79d3a726a4 /pkgs/tools/graphics/shotgun | |
parent | cbeb6570ace1a60a846ac8d6ad701f7ec0732329 (diff) |
shotgun: init at 2.2.0
Diffstat (limited to 'pkgs/tools/graphics/shotgun')
-rw-r--r-- | pkgs/tools/graphics/shotgun/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/shotgun/default.nix b/pkgs/tools/graphics/shotgun/default.nix new file mode 100644 index 000000000000..1ab47dfce2de --- /dev/null +++ b/pkgs/tools/graphics/shotgun/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, libXrandr, libX11 }: + +rustPlatform.buildRustPackage rec { + pname = "shotgun"; + version = "2.2.0"; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ libXrandr libX11 ]; + + src = fetchFromGitHub { + owner = "neXromancers"; + repo = pname; + rev = "v${version}"; + sha256 = "tJnF1X+NI1hP0J/n3rGy8TD/yIveqRPVlJvJvn0C7Do="; + }; + + cargoSha256 = "TL2WehcCwygLMVVrBHOX1HgVtDhgVsIgUeiadEjCj1o="; + + meta = with lib; { + description = "Minimal X screenshot utility"; + homepage = "https://github.com/neXromancers/shotgun"; + license = with licenses; [ mpl20 ]; + maintainers = with maintainers; [ lumi ]; + platforms = platforms.linux; + badPlatforms = [ "aarch64-linux" ]; + }; +} |