Merge pull request #263384 from figsoda/scip

scip: 0.3.0 -> 0.3.1
This commit is contained in:
Mario Rodas 2023-10-26 06:24:23 -05:00 committed by GitHub
commit bd903b39b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {