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