2022-07-14 12:49:19 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hilbish";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.2.3";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-06-28 23:13:55 +00:00
|
|
|
owner = "Rosettea";
|
2021-05-20 23:08:51 +00:00
|
|
|
repo = "Hilbish";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-iqQhgge+m22gIIGlwwmAoYTxfMAs/sKrKjoQzyedil4=";
|
2021-10-08 15:17:17 +00:00
|
|
|
fetchSubmodules = true;
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-jf+S1On3Cib20Uepsm8WeRwEyuRKzSPFfsT2YVkx4fs=";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.dataDir=${placeholder "out"}/share/hilbish"
|
|
|
|
];
|
2021-10-08 15:17:17 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/hilbish"
|
|
|
|
|
|
|
|
cp .hilbishrc.lua $out/share/hilbish/
|
2022-07-14 12:49:19 +00:00
|
|
|
cp -r docs -t $out/share/hilbish/
|
2021-10-08 15:17:17 +00:00
|
|
|
cp -r libs -t $out/share/hilbish/
|
2023-01-11 07:51:40 +00:00
|
|
|
cp -r nature $out/share/hilbish/
|
2021-10-08 15:17:17 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "An interactive Unix-like shell written in Go";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "hilbish";
|
2021-06-28 23:13:55 +00:00
|
|
|
changelog = "https://github.com/Rosettea/Hilbish/releases/tag/v${version}";
|
|
|
|
homepage = "https://github.com/Rosettea/Hilbish";
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ moni ];
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|