mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:26:02 +00:00
29 lines
761 B
Nix
29 lines
761 B
Nix
|
{ 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" ];
|
||
|
};
|
||
|
}
|