mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "hilbish";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Rosettea";
|
|
repo = "Hilbish";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-fUGeQM+7FRGTRL3J4c2+c+NTwrM6d99F2ucKsou2kRk=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
subPackages = [ "." ];
|
|
|
|
vendorSha256 = "sha256-j7YAt7+kUJXdd/9LaRZny3MxYdd+0n5G3AffeDMo5DY=";
|
|
|
|
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 prelude/ $out/share/hilbish/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "An interactive Unix-like shell written in Go";
|
|
changelog = "https://github.com/Rosettea/Hilbish/releases/tag/v${version}";
|
|
homepage = "https://github.com/Rosettea/Hilbish";
|
|
maintainers = with maintainers; [ fortuneteller2k ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|