nixpkgs/pkgs/tools/text/qprint/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
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.
2024-03-19 03:14:51 +01:00

31 lines
681 B
Nix

{ fetchurl, lib, stdenv }:
stdenv.mkDerivation rec {
pname = "qprint";
version = "1.1";
src = fetchurl {
url = "https://www.fourmilab.ch/webtools/qprint/qprint-${version}.tar.gz";
sha256 = "1701cnb1nl84rmcpxzq11w4cyj4385jh3gx4aqxznwf8a4fwmagz";
};
doCheck = true;
checkTarget = "wringer";
preInstall = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man1
'';
meta = {
homepage = "https://www.fourmilab.ch/webtools/qprint/";
license = lib.licenses.publicDomain;
description = "Encode and decode Quoted-Printable files";
mainProgram = "qprint";
maintainers = [ lib.maintainers.tv ];
platforms = lib.platforms.all;
};
}