nixpkgs-suyu/pkgs/games/xcowsay/default.nix

40 lines
950 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, pkg-config
2020-02-01 18:26:37 +01:00
, dbus, dbus-glib, gtk3, gdk-pixbuf, librsvg
, fortune
}:
stdenv.mkDerivation rec {
pname = "xcowsay";
2021-03-10 07:56:12 +01:00
version = "1.5.1";
2020-02-01 18:26:37 +01:00
src = fetchurl {
url = "http://www.nickg.me.uk/files/xcowsay-${version}.tar.gz";
2021-03-10 07:56:12 +01:00
sha256 = "sha256-wypsfAp634wbaAI+fxzmr3J5AmvQzChVi/wp/BPxiA0=";
2020-02-01 18:26:37 +01: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 18:26:37 +01:00
homepage = "http://www.doof.me.uk/xcowsay";
2021-03-10 09:29:14 +01:00
description = "Tool to display a cute cow and messages";
license = licenses.gpl3Plus;
2020-02-01 18:26:37 +01:00
maintainers = with maintainers; [ das_j ];
};
}