2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, farbfeld, libX11, libXft, makeWrapper
|
2016-04-04 01:35:45 +01:00
|
|
|
, patches ? [] }:
|
2015-11-21 18:15:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-21 11:48:49 +01:00
|
|
|
name = "sent-1";
|
2015-11-21 18:15:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-21 11:48:49 +01:00
|
|
|
url = "https://dl.suckless.org/tools/${name}.tar.gz";
|
|
|
|
sha256 = "0cxysz5lp25mgww73jl0mgip68x7iyvialyzdbriyaff269xxwvv";
|
2015-11-21 18:15:16 +00:00
|
|
|
};
|
|
|
|
|
2018-04-19 10:51:06 +01:00
|
|
|
buildInputs = [ libX11 libXft ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-10-21 11:48:49 +01:00
|
|
|
|
|
|
|
# unpacking doesn't create a directory
|
|
|
|
sourceRoot = ".";
|
2015-11-21 18:15:16 +00:00
|
|
|
|
2016-04-04 01:35:45 +01:00
|
|
|
inherit patches;
|
|
|
|
|
2015-11-21 18:15:16 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2018-04-19 10:51:06 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/sent" --prefix PATH : "${farbfeld}/bin"
|
|
|
|
'';
|
2015-11-21 18:15:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-11-21 18:15:16 +00:00
|
|
|
description = "A simple plaintext presentation tool";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://tools.suckless.org/sent/";
|
2017-10-21 11:48:49 +01:00
|
|
|
license = licenses.isc;
|
2015-11-21 18:15:16 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|