x11_ssh_askpass: clean up & add man page

This commit is contained in:
Jan Tojnar 2018-08-07 12:07:03 +02:00
parent 93168d887c
commit 8bd8c09f98
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,20 +1,28 @@
{stdenv, fetchurl, xlibsWrapper, imake}:
{ stdenv, fetchurl, xlibsWrapper, imake }:
stdenv.mkDerivation {
name = "x11-ssh-askpass-1.2.4.1";
outputs = [ "out" "man" ];
src = fetchurl {
url = http://www.jmknoble.net/software/x11-ssh-askpass/x11-ssh-askpass-1.2.4.1.tar.gz;
sha1 = "78c992951685d4dbffb77536f37b83ae2a6eafc7";
};
preConfigure = "
configureFlags=\"--with-app-defaults-dir=$out/etc/X11/app-defaults\"
";
nativeBuildInputs = [ imake ];
buildInputs = [ xlibsWrapper ];
buildPhase = "xmkmf; make includes; make";
configureFlags = [
"--with-app-defaults-dir=$out/etc/X11/app-defaults"
];
buildInputs = [xlibsWrapper imake];
preBuild = ''
xmkmf
make includes
'';
installTargets = [ "install" "install.man" ];
meta = {
homepage = http://www.jmknoble.net/software/x11-ssh-askpass/;