Unverified Commit 080dc68a authored by figsoda's avatar figsoda Committed by GitHub
Browse files

Merge pull request #237587 from 9ary/shotgun-2.5.0

shotgun: 2.4.0 -> 2.5.0
parents 44534737 dc8eaddb
Loading
Loading
Loading
Loading
+5 −14
Original line number Diff line number Diff line
{ lib, rustPlatform, fetchFromGitHub, pkg-config, libXrandr, libX11 }:
{ lib, rustPlatform, fetchFromGitHub }:

rustPlatform.buildRustPackage rec {
  pname = "shotgun";
  version = "2.4.0";
  version = "2.5.0";

  src = fetchFromGitHub {
    owner = "neXromancers";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-fcb+eZXzpuEPFSZexbgDpoBX85gsiIqPlcPXruNGenk=";
    sha256 = "sha256-ovqPBZznDQnQa9YW1xXA02Jl0AQ7sJNpzovA1SVR8Zc=";
  };

  cargoSha256 = "sha256-n5HPl2h0fr0MyGBivNVrrs23HAllIYtwaw1aaKWHCe4=";

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ libXrandr libX11 ];

  # build script tries to run git to get the current tag
  postPatch = ''
    echo "fn main() {}" > build.rs
  '';
  cargoSha256 = "sha256-mWifSN9Hpsivq0RdZ9l9+8CWaZMHfzzhT2r27FAuesU=";

  meta = with lib; {
    description = "Minimal X screenshot utility";
    homepage = "https://github.com/neXromancers/shotgun";
    license = with licenses; [ mpl20 ];
    maintainers = with maintainers; [ figsoda lumi ];
    maintainers = with maintainers; [ figsoda lumi novenary ];
    platforms = platforms.linux;
  };
}