nixpkgs/pkgs/games/xcowsay/default.nix

40 lines
948 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";
2022-01-24 11:32:02 +00:00
version = "1.6";
2020-02-01 17:26:37 +00:00
src = fetchurl {
url = "http://www.nickg.me.uk/files/xcowsay-${version}.tar.gz";
2022-01-24 11:32:02 +00:00
sha256 = "sha256-RqzoZP8o0tIfS3BY8CleGNAEGhIMEHipUfpDxOD1yMU=";
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 ];
};
}