Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 28 lines 619 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "shhmsg"; 9 version = "1.4.2"; 10 11 src = fetchurl { 12 url = "https://shh.thathost.com/pub-unix/files/shhmsg-${version}.tar.gz"; 13 sha256 = "0ax02fzqpaxr7d30l5xbndy1s5vgg1ag643c7zwiw2wj1czrxil8"; 14 }; 15 16 postPatch = '' 17 substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc" 18 ''; 19 20 installFlags = [ "INSTBASEDIR=$(out)" ]; 21 22 meta = with lib; { 23 description = "Library for displaying messages"; 24 homepage = "https://shh.thathost.com/pub-unix/"; 25 license = licenses.artistic1; 26 platforms = platforms.all; 27 }; 28}