2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, buildGoPackage, fetchFromGitHub, makeWrapper }:
|
2018-01-21 22:31:51 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tewisay-unstable";
|
2018-01-21 22:31:51 +00:00
|
|
|
version = "2017-04-14";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/lucy/tewisay";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lucy";
|
|
|
|
repo = "tewisay";
|
|
|
|
rev = "e3fc38737cedb79d93b8cee07207c6c86db4e488";
|
|
|
|
sha256 = "1na3xi4z90v8qydcvd3454ia9jg7qhinciy6kvgyz61q837cw5dk";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-04-28 01:50:57 +00:00
|
|
|
install -D -t $out/share/tewisay/cows go/src/${goPackagePath}/cows/*.cow
|
2018-01-21 22:31:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2020-04-28 01:50:57 +00:00
|
|
|
wrapProgram $out/bin/tewisay \
|
|
|
|
--prefix COWPATH : $out/share/tewisay/cows
|
2018-01-21 22:31:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/lucy/tewisay";
|
2018-01-21 22:31:51 +00:00
|
|
|
description = "Cowsay replacement with unicode and partial ansi escape support";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.cc0;
|
|
|
|
maintainers = [ lib.maintainers.chiiruno ];
|
2018-01-21 22:31:51 +00:00
|
|
|
};
|
|
|
|
}
|