nixpkgs/pkgs/applications/misc/sent/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
834 B
Nix
Raw Normal View History

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