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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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