Unverified Commit 78fc3ac6 authored by Mikael Voss's avatar Mikael Voss
Browse files

tinyssh: correct installation path

With version 20241201 the Makefile was completely re‐written so that the
previous path configuration through the conf-bin and conf-man files
would not have any effect. The binaries and man pages would be installed
with a default prefix of /usr/local.

The installation prefix is now supplied through a PREFIX make variable.
parent ab59e23b
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -16,14 +16,9 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-bcQDKDpd7HFnmJAyqcO+BQMGV1pCHuS+OhFPJSOMInI=";
  };

  preConfigure = ''
    echo /bin       > conf-bin
    echo /share/man > conf-man
  '';

  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration";

  DESTDIR = placeholder "out";
  installFlags = [ "PREFIX=${placeholder "out"}" ];

  passthru.updateScript = nix-update-script { };