about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/scip
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-10-25 13:39:55 -0400
committerfigsoda <figsoda@pm.me>2023-10-25 13:45:25 -0400
commit771ef21ef729806d9e9f16607afcbcb16f639a04 (patch)
tree1d6ab2a87d39ec312ee47d30f9808f8951e5f231 /pkgs/development/tools/misc/scip
parent23e72d38caf82cb8f38bcdf035153cac5891a047 (diff)
scip: 0.3.0 -> 0.3.1
Diff: https://github.com/sourcegraph/scip/compare/v0.3.0...v0.3.1

Changelog: https://github.com/sourcegraph/scip/blob/v0.3.1/CHANGELOG.md
Diffstat (limited to 'pkgs/development/tools/misc/scip')
-rw-r--r--pkgs/development/tools/misc/scip/default.nix23
1 files changed, 7 insertions, 16 deletions
diff --git a/pkgs/development/tools/misc/scip/default.nix b/pkgs/development/tools/misc/scip/default.nix
index 36fb940f19c70..0438e65aede3e 100644
--- a/pkgs/development/tools/misc/scip/default.nix
+++ b/pkgs/development/tools/misc/scip/default.nix
@@ -1,33 +1,22 @@
 { lib
 , buildGoModule
 , fetchFromGitHub
-, fetchpatch
 , testers
 , scip
 }:
 
 buildGoModule rec {
   pname = "scip";
-  version = "0.3.0";
+  version = "0.3.1";
 
   src = fetchFromGitHub {
     owner = "sourcegraph";
     repo = "scip";
     rev = "v${version}";
-    hash = "sha256-tcnBv+dxuLD/ixeOLGrHu2UVfOnrfANjyaRzW5oDC94=";
+    hash = "sha256-8CH5rIWvCXZGspAyF6c8Qs/gntpfdpPrxrvxW3bZ/ww=";
   };
 
-  vendorHash = "sha256-+IR3fc6tvSwPGDZ4DxrE48Ii3azcT0LMmID1LRAu5g8=";
-
-  patches = [
-    # update documentation to fix broken test
-    # https://github.com/sourcegraph/scip/pull/174
-    (fetchpatch {
-      name = "test-fix-out-of-sync-documentation.patch";
-      url = "https://github.com/sourcegraph/scip/commit/7450b7701637956d4ae6669338c808234f7a7bfa.patch";
-      hash = "sha256-Y5nAVHyy430xdN89ohA8XAssNdSSPq4y7QaesN48jVs=";
-    })
-  ];
+  vendorHash = "sha256-3Tq2cexcxHjaH6WIz2hneE1QeBSGoMINBncKbqxODxQ=";
 
   ldflags = [
     "-s"
@@ -35,8 +24,10 @@ buildGoModule rec {
     "-X=main.Reproducible=true"
   ];
 
-  postInstall = ''
-    mv $out/bin/{cmd,scip}
+  # update documentation to fix broken test
+  postPatch = ''
+    substituteInPlace docs/CLI.md \
+      --replace 0.3.0 0.3.1
   '';
 
   passthru.tests = {