From b23e92eac104d7d77183a43437f4c04cd4a13e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=81=E3=83=AB=E3=83=8E?= <30435868+Chiiruno@users.noreply.github.com> Date: Sun, 21 Jan 2018 16:31:51 -0600 Subject: [PATCH] tewisay: init at git-2017-04-14 (#33488) --- lib/maintainers.nix | 1 + pkgs/tools/misc/tewisay/default.nix | 36 +++++++++++++++++++++++++++++ pkgs/tools/misc/tewisay/deps.nix | 21 +++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 4 files changed, 60 insertions(+) create mode 100644 pkgs/tools/misc/tewisay/default.nix create mode 100644 pkgs/tools/misc/tewisay/deps.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 9f9234f18a55..5614627db0d8 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -118,6 +118,7 @@ chaoflow = "Florian Friesdorf "; chattered = "Phil Scott "; ChengCat = "Yucheng Zhang "; + chiiruno = "Okina Matara "; choochootrain = "Hurshal Patel "; chpatrick = "Patrick Chilton "; chreekat = "Bryan Richter "; diff --git a/pkgs/tools/misc/tewisay/default.nix b/pkgs/tools/misc/tewisay/default.nix new file mode 100644 index 000000000000..2d713ae3821c --- /dev/null +++ b/pkgs/tools/misc/tewisay/default.nix @@ -0,0 +1,36 @@ +{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper }: + +buildGoPackage rec { + name = "tewisay-unstable-${version}"; + 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 = '' + install -D -t $bin/share/tewisay/cows go/src/${goPackagePath}/cows/*.cow + ''; + + preFixup = '' + wrapProgram $bin/bin/tewisay \ + --prefix COWPATH : $bin/share/tewisay/cows + ''; + + meta = { + homepage = https://github.com/lucy/tewisay; + description = "Cowsay replacement with unicode and partial ansi escape support"; + license = stdenv.lib.licenses.cc0; + maintainers = [ stdenv.lib.maintainers.chiiruno ]; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/tools/misc/tewisay/deps.nix b/pkgs/tools/misc/tewisay/deps.nix new file mode 100644 index 000000000000..b6b1356dcf80 --- /dev/null +++ b/pkgs/tools/misc/tewisay/deps.nix @@ -0,0 +1,21 @@ +# This file was generated by https://github.com/kamilchm/go2nix v1.2.1 +[ + { + goPackagePath = "github.com/mattn/go-runewidth"; + fetch = { + type = "git"; + url = "https://github.com/mattn/go-runewidth"; + rev = "97311d9f7767e3d6f422ea06661bc2c7a19e8a5d"; + sha256 = "0dxlrzn570xl7gb11hjy1v4p3gw3r41yvqhrffgw95ha3q9p50cg"; + }; + } + { + goPackagePath = "github.com/ogier/pflag"; + fetch = { + type = "git"; + url = "https://github.com/ogier/pflag"; + rev = "45c278ab3607870051a2ea9040bb85fcb8557481"; + sha256 = "0620v75wppfd84d95n312wpngcb73cph4q3ivs1h0waljfnsrd5l"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6318a56fedf4..8b819545ded0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4824,6 +4824,8 @@ with pkgs; telepresence = callPackage ../tools/networking/telepresence { }; + tewisay = callPackage ../tools/misc/tewisay { }; + texmacs = callPackage ../applications/editors/texmacs { tex = texlive.combined.scheme-small; extraFonts = true;