mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "hilbish";
|
|
version = "2.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Rosettea";
|
|
repo = "Hilbish";
|
|
rev = "v${version}";
|
|
hash = "sha256-iqQhgge+m22gIIGlwwmAoYTxfMAs/sKrKjoQzyedil4=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
subPackages = [ "." ];
|
|
|
|
vendorHash = "sha256-jf+S1On3Cib20Uepsm8WeRwEyuRKzSPFfsT2YVkx4fs=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.dataDir=${placeholder "out"}/share/hilbish"
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir -p "$out/share/hilbish"
|
|
|
|
cp .hilbishrc.lua $out/share/hilbish/
|
|
cp -r docs -t $out/share/hilbish/
|
|
cp -r libs -t $out/share/hilbish/
|
|
cp -r nature $out/share/hilbish/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Interactive Unix-like shell written in Go";
|
|
mainProgram = "hilbish";
|
|
changelog = "https://github.com/Rosettea/Hilbish/releases/tag/v${version}";
|
|
homepage = "https://github.com/Rosettea/Hilbish";
|
|
maintainers = with maintainers; [ moni ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|