ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
34 lines
860 B
Nix
34 lines
860 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 = "A simple plaintext presentation tool";
|
|
mainProgram = "sent";
|
|
homepage = "https://tools.suckless.org/sent/";
|
|
license = licenses.isc;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|