summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/sh/shhmsg/package.nix
blob: 4b6ce1ada94e992b908f79d8526ca596333863e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  lib,
  stdenv,
  fetchurl,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "shhmsg";
  version = "1.4.2";

  src = fetchurl {
    url = "https://shh.thathost.com/pub-unix/files/shhmsg-${finalAttrs.version}.tar.gz";
    sha256 = "0ax02fzqpaxr7d30l5xbndy1s5vgg1ag643c7zwiw2wj1czrxil8";
  };

  postPatch = ''
    substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
  '';

  installFlags = [ "INSTBASEDIR=$(out)" ];

  meta = {
    description = "Library for displaying messages";
    homepage = "https://shh.thathost.com/pub-unix/";
    license = lib.licenses.artistic1;
    platforms = lib.platforms.all;
  };
})