1{ stdenv, fetchurl, perl }:
2
3stdenv.mkDerivation rec{
4 version = "3.03+dfsg2";
5 name = "cowsay-${version}";
6
7 src = fetchurl {
8 url = "http://http.debian.net/debian/pool/main/c/cowsay/cowsay_${version}.orig.tar.gz";
9 sha256 = "0ghqnkp8njc3wyqx4mlg0qv0v0pc996x2nbyhqhz66bbgmf9d29v";
10 };
11
12 buildInputs = [ perl ];
13
14 installPhase = ''
15 bash ./install.sh $out
16 '';
17
18 meta = with stdenv.lib; {
19 description = "A program which generates ASCII pictures of a cow with a message";
20 homepage = https://en.wikipedia.org/wiki/Cowsay;
21 license = licenses.gpl1;
22 platforms = platforms.all;
23 maintainers = [ maintainers.rob ];
24 };
25}