mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
Merge pull request #140817 from legendofmiracles/fix-hilbish
This commit is contained in:
commit
2997d3d12e
@ -8,13 +8,30 @@ buildGoModule rec {
|
|||||||
owner = "Rosettea";
|
owner = "Rosettea";
|
||||||
repo = "Hilbish";
|
repo = "Hilbish";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-xqGesBNN9lZTYx0kTZfFARq1a/dEC+c3Fo0xLxZuZP4=";
|
sha256 = "sha256-557Je9KeBpkZxVAxcjWAhybIJJYlzhtbnIyZh0rCRUc=";
|
||||||
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-8l+Kb1ADMLwv0Hf/ikok8eUcEEST07rhk8BjHxJI0lc=";
|
vendorSha256 = "sha256-8l+Kb1ADMLwv0Hf/ikok8eUcEEST07rhk8BjHxJI0lc=";
|
||||||
|
|
||||||
buildInputs = [ readline ];
|
buildInputs = [ readline ];
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# in master vars.go is called vars_linux.go
|
||||||
|
substituteInPlace vars.go \
|
||||||
|
--replace "/usr/share" "${placeholder "out"}/share/"
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p "$out/share/hilbish"
|
||||||
|
|
||||||
|
cp .hilbishrc.lua $out/share/hilbish/
|
||||||
|
cp -r libs -t $out/share/hilbish/
|
||||||
|
cp preload.lua $out/share/hilbish/
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An interactive Unix-like shell written in Go";
|
description = "An interactive Unix-like shell written in Go";
|
||||||
changelog = "https://github.com/Rosettea/Hilbish/releases/tag/v${version}";
|
changelog = "https://github.com/Rosettea/Hilbish/releases/tag/v${version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user