Merge pull request #270797 from figsoda/runme

runme: 1.7.8 -> 2.0.0
This commit is contained in:
Nick Cao 2023-11-29 09:13:39 -05:00 committed by GitHub
commit ed9debc4d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
{ lib
, buildGo121Module
, buildGoModule
, fetchFromGitHub
, installShellFiles
, nodejs
@ -10,18 +10,18 @@
, runme
}:
buildGo121Module rec {
buildGoModule rec {
pname = "runme";
version = "1.7.8";
version = "2.0.0";
src = fetchFromGitHub {
owner = "stateful";
repo = "runme";
rev = "v${version}";
hash = "sha256-ZM8gdZ26XAlC+j6U0+oQJIb+5gOGFUAYHPP82kA1ogU=";
hash = "sha256-EUAYwm7nd7VRGbTth+ZXcgqqPSGKthv8sciO+iCpdds=";
};
vendorHash = "sha256-nKH4hT0J9QfrDdvovu/XNxU4PtZYKkfqEBiCTNLWyRA=";
vendorHash = "sha256-xQuxoizcxut4qjXqgMEWMROiG53goxEXQas5n/2NiaY=";
nativeBuildInputs = [
installShellFiles
@ -44,8 +44,11 @@ buildGo121Module rec {
"-X=github.com/stateful/runme/internal/version.Commit=${src.rev}"
];
# tests fail to access /etc/bashrc on darwin
doCheck = !stdenv.isDarwin;
postPatch = ''
substituteInPlace testdata/script/basic.txtar \
substituteInPlace testdata/{categories/basic,runall/basic,script/basic}.txtar \
--replace /bin/bash "${runtimeShell}"
'';