Merge pull request #142533 from legendofmiracles/hilbish

hilbish: 0.6.0 -> 0.6.1
This commit is contained in:
figsoda 2021-10-22 10:13:18 -04:00 committed by GitHub
commit 5e9c3d5822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,26 +2,25 @@
buildGoModule rec {
pname = "hilbish";
version = "0.6.0";
version = "0.6.1";
src = fetchFromGitHub {
owner = "Rosettea";
repo = "Hilbish";
rev = "v${version}";
sha256 = "sha256-ACHHHGT3VGnvZVi1UZb57+g/slcld5e3bh+DDhUVVpQ=";
sha256 = "sha256-3qU1gQSWxyKgQcHgT61Q+n6u0rGU0vqTdT/VwMN20yw=";
fetchSubmodules = true;
};
vendorSha256 = "sha256-SVGPMFpQjVOWCfiPpEmqhp6MEO0wqeyAZVyeNmTuXl0=";
vendorSha256 = "sha256-xnq0CEfz9uVpDkqY5/Sw9O5uMTHV74vQBXrav3bbH7E=";
buildInputs = [ readline ];
ldflags = [ "-s" "-w" ];
postPatch = ''
substituteInPlace vars_linux.go \
--replace "/usr/share" "${placeholder "out"}/share/"
'';
ldflags = [
"-s"
"-w"
"-X main.dataDir=${placeholder "out"}/share/hilbish"
];
postInstall = ''
mkdir -p "$out/share/hilbish"