nixpkgs/pkgs/applications/misc/sent/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

35 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 ];
};
}