Unverified Commit 1ef1d6ca authored by Anderson Torres's avatar Anderson Torres Committed by GitHub
Browse files

Merge pull request #179605 from fortuneteller2k/hilbish

hilbish: 1.0.4 -> 1.2.0
parents 2d48f0c1 4ecde975
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub, readline }:
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "hilbish";
  version = "1.0.4";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "Rosettea";
    repo = "Hilbish";
    rev = "v${version}";
    sha256 = "sha256-JVAyE6iSfRres2YalQF3CWK5Jtn5HoW6p6RHVbwzoVQ=";
    sha256 = "sha256-n4+qUCbjqxLmGuCQ0QTscJ3me0UZUP/7ggvGp1pNkfg=";
    fetchSubmodules = true;
  };

  vendorSha256 = "sha256-Bmst1oJMuSXGvL8Syw6v2BqrbO5McHKkTufFs6iuxzs=";
  subPackages = [ "." ];

  vendorSha256 = "sha256-j7YAt7+kUJXdd/9LaRZny3MxYdd+0n5G3AffeDMo5DY=";

  ldflags = [
    "-s"
@@ -24,13 +26,9 @@ buildGoModule rec {
    mkdir -p "$out/share/hilbish"

    cp .hilbishrc.lua $out/share/hilbish/
    cp -r docs -t $out/share/hilbish
    cp -r docs -t $out/share/hilbish/
    cp -r libs -t $out/share/hilbish/
    cp -r prelude/ $out/share/hilbish/

    # segfaults and it's already been generated upstream
    # we copy the docs over with the above cp command
    rm $out/bin/docgen
  '';

  meta = with lib; {
@@ -39,6 +37,5 @@ buildGoModule rec {
    homepage = "https://github.com/Rosettea/Hilbish";
    maintainers = with maintainers; [ fortuneteller2k ];
    license = licenses.mit;
    platforms = platforms.linux; # only officially supported on Linux
  };
}