2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, farbfeld, libX11, libXft, makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
, patches ? [] }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-03-12 07:09:13 +00:00
|
|
|
pname = "sent";
|
|
|
|
version = "1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-12 07:09:13 +00:00
|
|
|
url = "https://dl.suckless.org/tools/sent-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple plaintext presentation tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sent";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://tools.suckless.org/sent/";
|
|
|
|
license = licenses.isc;
|
2021-03-12 07:09:13 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|