diff options
author | チルノ <30435868+Chiiruno@users.noreply.github.com> | 2018-01-21 16:31:51 -0600 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-01-21 22:31:51 +0000 |
commit | b23e92eac104d7d77183a43437f4c04cd4a13e67 (patch) | |
tree | e2b9e4e2c78b5994311146ba4eecc15ec3f11f49 /pkgs/tools/misc/tewisay/default.nix | |
parent | e36a3623e9fef792a63faa0df49b47ed66cc36a6 (diff) | |
download | nixlib-b23e92eac104d7d77183a43437f4c04cd4a13e67.tar nixlib-b23e92eac104d7d77183a43437f4c04cd4a13e67.tar.gz nixlib-b23e92eac104d7d77183a43437f4c04cd4a13e67.tar.bz2 nixlib-b23e92eac104d7d77183a43437f4c04cd4a13e67.tar.lz nixlib-b23e92eac104d7d77183a43437f4c04cd4a13e67.tar.xz nixlib-b23e92eac104d7d77183a43437f4c04cd4a13e67.tar.zst nixlib-b23e92eac104d7d77183a43437f4c04cd4a13e67.zip |
tewisay: init at git-2017-04-14 (#33488)
Diffstat (limited to 'pkgs/tools/misc/tewisay/default.nix')
-rw-r--r-- | pkgs/tools/misc/tewisay/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
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; + }; +} |