Merge pull request #211258 from figsoda/shotgun
shotgun: fix build, add figsoda as a maintainer
This commit is contained in:
commit
b7ad99390b
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user