2019-10-27 14:01:59 +00:00
|
|
|
{ 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}";
|
2020-06-02 21:44:52 +01:00
|
|
|
sha256 = "0fpc09yvxjcvjkai7afyig4gyc7inaqxxrwzs17mh8wdgzawb6dl";
|
2019-10-27 14:01:59 +00:00
|
|
|
};
|
|
|
|
|
2020-02-28 03:31:56 +00:00
|
|
|
cargoSha256 = "0sbhij8qh9n05nzhp47dm46hbc59awar515f9nhd3wvahwz53zam";
|
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" ];
|
|
|
|
};
|
|
|
|
}
|