nixpkgs/pkgs/games/xcowsay/default.nix

40 lines
950 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, pkg-config
2020-02-01 17:26:37 +00:00
, dbus, dbus-glib, gtk3, gdk-pixbuf, librsvg
, fortune
}:
stdenv.mkDerivation rec {
pname = "xcowsay";
2021-03-10 06:56:12 +00:00
version = "1.5.1";
2020-02-01 17:26:37 +00:00
src = fetchurl {
url = "http://www.nickg.me.uk/files/xcowsay-${version}.tar.gz";
2021-03-10 06:56:12 +00:00
sha256 = "sha256-wypsfAp634wbaAI+fxzmr3J5AmvQzChVi/wp/BPxiA0=";
2020-02-01 17:26:37 +00:00
};
buildInputs = [
dbus
dbus-glib
gtk3
gdk-pixbuf # loading cow images
librsvg # dreaming SVG images
];
nativeBuildInputs = [ makeWrapper pkg-config ];
configureFlags = [ "--enable-dbus" ];
postInstall = ''
for tool in xcowdream xcowsay xcowthink xcowfortune; do
wrapProgram $out/bin/$tool \
--prefix PATH : $out/bin:${fortune}/bin
done
'';
meta = with lib; {
2020-02-01 17:26:37 +00:00
homepage = "http://www.doof.me.uk/xcowsay";
2021-03-10 08:29:14 +00:00
description = "Tool to display a cute cow and messages";
license = licenses.gpl3Plus;
2020-02-01 17:26:37 +00:00
maintainers = with maintainers; [ das_j ];
};
}