about summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-01-17 12:06:52 -0500
committerfigsoda <figsoda@pm.me>2023-01-17 12:06:52 -0500
commit122499234b03facb535358e0ed4d95f971413224 (patch)
tree8ee3708171b447c46e3586faabad2ff46fc391b4 /pkgs/tools/graphics
parent57ec2d4f39331fb1dfa964a05a58954cc9438832 (diff)
shotgun: fix build, add figsoda as a maintainer
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/shotgun/default.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/pkgs/tools/graphics/shotgun/default.nix b/pkgs/tools/graphics/shotgun/default.nix
index 7f644a51b278c..37a20c6447b32 100644
--- a/pkgs/tools/graphics/shotgun/default.nix
+++ b/pkgs/tools/graphics/shotgun/default.nix
@@ -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" ];
   };
 }