2022-06-29 18:43:05 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-05-06 23:40:42 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hilbish";
|
2022-06-29 18:43:05 +00:00
|
|
|
version = "1.2.0";
|
2021-05-06 23:40:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-06-13 00:15:26 +00:00
|
|
|
owner = "Rosettea";
|
2021-05-06 23:40:42 +00:00
|
|
|
repo = "Hilbish";
|
|
|
|
rev = "v${version}";
|
2022-06-29 18:43:05 +00:00
|
|
|
sha256 = "sha256-n4+qUCbjqxLmGuCQ0QTscJ3me0UZUP/7ggvGp1pNkfg=";
|
2021-10-06 17:00:35 +00:00
|
|
|
fetchSubmodules = true;
|
2021-05-06 23:40:42 +00:00
|
|
|
};
|
|
|
|
|
2022-06-29 18:43:05 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-j7YAt7+kUJXdd/9LaRZny3MxYdd+0n5G3AffeDMo5DY=";
|
2021-05-06 23:40:42 +00:00
|
|
|
|
2021-10-22 04:24:04 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.dataDir=${placeholder "out"}/share/hilbish"
|
|
|
|
];
|
2021-10-06 17:00:35 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/hilbish"
|
|
|
|
|
|
|
|
cp .hilbishrc.lua $out/share/hilbish/
|
2022-06-29 18:43:05 +00:00
|
|
|
cp -r docs -t $out/share/hilbish/
|
2021-10-06 17:00:35 +00:00
|
|
|
cp -r libs -t $out/share/hilbish/
|
2022-03-07 02:17:49 +00:00
|
|
|
cp -r prelude/ $out/share/hilbish/
|
2021-10-06 17:00:35 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-06 23:40:42 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "An interactive Unix-like shell written in Go";
|
2021-06-13 00:15:26 +00:00
|
|
|
changelog = "https://github.com/Rosettea/Hilbish/releases/tag/v${version}";
|
|
|
|
homepage = "https://github.com/Rosettea/Hilbish";
|
2021-05-06 23:40:42 +00:00
|
|
|
maintainers = with maintainers; [ fortuneteller2k ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|