mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
ncftp: man and doc files were missing
This commit is contained in:
parent
0709ebba72
commit
dab9d404ce
@ -1,8 +1,8 @@
|
|||||||
{ stdenv, fetchurl, ncurses, coreutils }:
|
{ stdenv, fetchurl, ncurses, coreutils }:
|
||||||
|
|
||||||
let version = "3.2.6"; in
|
stdenv.mkDerivation rec {
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "ncftp-${version}";
|
name = "ncftp-${version}";
|
||||||
|
version = "3.2.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.xz";
|
url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.xz";
|
||||||
@ -11,24 +11,29 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ ncurses ];
|
buildInputs = [ ncurses ];
|
||||||
|
|
||||||
preConfigure = ''
|
enableParallelBuilding = true;
|
||||||
find . -name "*.sh" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
|
|
||||||
find . -name "*.in" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
|
|
||||||
find . -name "*.c" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
|
|
||||||
sed 's@/bin/ls@${coreutils}/bin/ls@g' -i configure
|
|
||||||
|
|
||||||
find . -name "*.sh" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
|
preConfigure = ''
|
||||||
find . -name "*.in" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
|
find . -name '*.sh' -or -name '*.in' -or -name '*.c' -or -name configure | xargs sed -i \
|
||||||
find . -name "*.c" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
|
-e 's@/bin/ls@${coreutils}/bin/ls@g' \
|
||||||
sed 's@/bin/rm@${coreutils}/bin/rm@g' -i configure
|
-e 's@/bin/rm@${coreutils}/bin/rm@g'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [ "--mandir=$out/share/man/" ];
|
postInstall = ''
|
||||||
|
rmdir $out/etc
|
||||||
|
mkdir -p $out/share/doc
|
||||||
|
cp -r doc $out/share/doc/ncftp
|
||||||
|
'';
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--enable-ssp"
|
||||||
|
"--mandir=$(out)/share/man/"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Command line FTP (File Transfer Protocol) client";
|
description = "Command line FTP (File Transfer Protocol) client";
|
||||||
homepage = http://www.ncftp.com/ncftp/;
|
homepage = https://www.ncftp.com/ncftp/;
|
||||||
|
maintainers = with maintainers; [ bjornfor ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = [ maintainers.bjornfor ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user