mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-07 22:33:08 +00:00
29 lines
767 B
Nix
29 lines
767 B
Nix
{ lib, fetchFromGitHub, rustPlatform, pkg-config, libXrandr, libX11 }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "shotgun";
|
|
version = "2.2.1";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libXrandr libX11 ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "neXromancers";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ClQP/iNs9b4foDUVpH37YCZyjVSgweHLKnSwnpkRwZI=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-w5s9I7lXO8HN9zHqZQCeqBXSd7jmbsaqMZRwPLnbqNk=";
|
|
|
|
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" ];
|
|
};
|
|
}
|