3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/graphics/shotgun/default.nix

29 lines
767 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform, pkg-config, libXrandr, libX11 }:
2019-10-27 14:01:59 +00:00
rustPlatform.buildRustPackage rec {
pname = "shotgun";
2021-10-28 20:00:56 +01:00
version = "2.2.1";
2019-10-27 14:01:59 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libXrandr libX11 ];
src = fetchFromGitHub {
owner = "neXromancers";
repo = pname;
rev = "v${version}";
2021-10-28 20:00:56 +01:00
sha256 = "sha256-ClQP/iNs9b4foDUVpH37YCZyjVSgweHLKnSwnpkRwZI=";
2019-10-27 14:01:59 +00:00
};
2021-10-28 20:00:56 +01:00
cargoSha256 = "sha256-w5s9I7lXO8HN9zHqZQCeqBXSd7jmbsaqMZRwPLnbqNk=";
2019-10-27 14:01:59 +00:00
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" ];
};
}