1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "shhmsg";
5 version = "1.4.2";
6
7 src = fetchurl {
8 url = "https://shh.thathost.com/pub-unix/files/shhmsg-${version}.tar.gz";
9 sha256 = "0ax02fzqpaxr7d30l5xbndy1s5vgg1ag643c7zwiw2wj1czrxil8";
10 };
11
12 postPatch = ''
13 substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
14 '';
15
16 installFlags = [ "INSTBASEDIR=$(out)" ];
17
18 meta = with lib; {
19 description = "A library for displaying messages";
20 homepage = "https://shh.thathost.com/pub-unix/";
21 license = licenses.artistic1;
22 platforms = platforms.all;
23 };
24}