Merge pull request #211258 from figsoda/shotgun

shotgun: fix build, add figsoda as a maintainer
This commit is contained in:
figsoda 2023-01-17 20:02:12 -05:00 committed by GitHub
commit b7ad99390b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,9 @@
{ lib, fetchFromGitHub, rustPlatform, pkg-config, libXrandr, libX11 }:
{ lib, rustPlatform, fetchFromGitHub, pkg-config, libXrandr, libX11 }:
rustPlatform.buildRustPackage rec {
pname = "shotgun";
version = "2.3.1";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libXrandr libX11 ];
src = fetchFromGitHub {
owner = "neXromancers";
repo = pname;
@ -17,12 +13,20 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-UOchXeBX+sDuLhwWQRVFCj9loJUyr4IltiAKsQoh5/c=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libXrandr libX11 ];
# build script tries to run git to get the current tag
postPatch = ''
echo "fn main() {}" > build.rs
'';
meta = with lib; {
description = "Minimal X screenshot utility";
homepage = "https://github.com/neXromancers/shotgun";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ lumi ];
maintainers = with maintainers; [ figsoda lumi ];
platforms = platforms.linux;
badPlatforms = [ "aarch64-linux" ];
};
}