remove freetz-tools (will be replaced by squashfs-avm-be)

master
Christian Ulrich 2021-02-07 15:56:55 +01:00
parent 7cce3c4103
commit cce6dbd557
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
2 changed files with 0 additions and 63 deletions

View File

@ -7,8 +7,6 @@ self: super:
c2nim = super.callPackage ./pkgs/nim-packages/c2nim.nix { };
freetz-tools = super.callPackage ./pkgs/freetz-tools/default.nix { };
gintro = super.callPackage ./pkgs/nim-packages/gintro/default.nix { };
gnutls = super.callPackage ./pkgs/gnutls/default.nix {

View File

@ -1,61 +0,0 @@
{ stdenv, pkgconfig, autoconf, automake, file, git, libtool, perl, python,
unzip, imagemagick, bash, which, glibc, gettext, bison, flex, ncurses,
readline, acl, zlib, libcap }:
with stdenv.lib;
let
ncursesInc = makeSearchPathOutput "dev" "include" [ ncurses ];
zlibInc = makeSearchPathOutput "dev" "include" [ zlib ];
readlineInc = makeSearchPathOutput "dev" "include" [ readline ];
aclInc = makeSearchPathOutput "dev" "include" [ acl ];
libcapInc = makeSearchPathOutput "dev" "include" [ libcap ];
in
stdenv.mkDerivation rec {
name = "freetz-tools";
version = "0.1";
src = /home/christian/Downloads/Openwrt-Router/freetz;
patchPhase = ''
patchShebangs tools
substituteInPlace tools/check_prerequisites \
--replace "/sbin/ldconfig" "${glibc}/bin/ldconfig" \
--replace "/usr/include/ /usr/local/include/" "${ncursesInc} \
${zlibInc} \
${readlineInc} \
${aclInc} \
${libcapInc}"
'';
buildInputs = [
which
autoconf
automake
file
git
libtool
perl
python
unzip
imagemagick
gettext
pkgconfig
bison
flex
ncurses
readline
];
buildPhase = ''
make tools
'';
installPhase = ''
install -D tools/unsquashfs4-avm-be $out/bin/unsquashfs4-avm-be
install -D tools/unsquashfs4-avm-le $out/bin/unsquashfs4-avm-le
install -D tools/mksquashfs4-avm-be $out/bin/mksquashfs4-avm-be
install -D tools/mksquashfs4-avm-le $out/bin/mksquashfs4-avm-le
'';
}