Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 45 lines 885 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 farbfeld, 6 libX11, 7 libXft, 8 makeWrapper, 9 patches ? [ ], 10}: 11 12stdenv.mkDerivation rec { 13 pname = "sent"; 14 version = "1"; 15 16 src = fetchurl { 17 url = "https://dl.suckless.org/tools/sent-${version}.tar.gz"; 18 sha256 = "0cxysz5lp25mgww73jl0mgip68x7iyvialyzdbriyaff269xxwvv"; 19 }; 20 21 buildInputs = [ 22 libX11 23 libXft 24 ]; 25 nativeBuildInputs = [ makeWrapper ]; 26 27 # unpacking doesn't create a directory 28 sourceRoot = "."; 29 30 inherit patches; 31 32 installFlags = [ "PREFIX=$(out)" ]; 33 postInstall = '' 34 wrapProgram "$out/bin/sent" --prefix PATH : "${farbfeld}/bin" 35 ''; 36 37 meta = with lib; { 38 description = "Simple plaintext presentation tool"; 39 mainProgram = "sent"; 40 homepage = "https://tools.suckless.org/sent/"; 41 license = licenses.isc; 42 platforms = platforms.unix; 43 maintainers = with maintainers; [ pSub ]; 44 }; 45}