depot/third_party/nixpkgs/pkgs/applications/misc/sent/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
858 B
Nix

{ lib, stdenv, fetchurl, farbfeld, libX11, libXft, makeWrapper
, patches ? [] }:
stdenv.mkDerivation rec {
pname = "sent";
version = "1";
src = fetchurl {
url = "https://dl.suckless.org/tools/sent-${version}.tar.gz";
sha256 = "0cxysz5lp25mgww73jl0mgip68x7iyvialyzdbriyaff269xxwvv";
};
buildInputs = [ libX11 libXft ];
nativeBuildInputs = [ makeWrapper ];
# unpacking doesn't create a directory
sourceRoot = ".";
inherit patches;
installFlags = [ "PREFIX=$(out)" ];
postInstall = ''
wrapProgram "$out/bin/sent" --prefix PATH : "${farbfeld}/bin"
'';
meta = with lib; {
description = "Simple plaintext presentation tool";
mainProgram = "sent";
homepage = "https://tools.suckless.org/sent/";
license = licenses.isc;
platforms = platforms.unix;
maintainers = with maintainers; [ pSub ];
};
}