Unverified Commit cd564c5a authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

ynetd.hardened: add pow-solver binary (#390843)

parents 4e4ce2f6 3bd9ca0e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{
  lib,
  openssl,
  stdenv,
  fetchurl,
}:
@@ -12,9 +13,17 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-hUEZZEulmaV3KfKOqE1wl7y4SRUn2/HoOjVDabk5+YA=";
  };

  buildInputs = [ openssl ];

  makeFlags = [
    "ynetd"
    "pow-solver"
  ];

  installPhase = ''
    runHook preInstall
    install -Dm755 ynetd $out/bin/ynetd
    install -Dm755 pow-solver $out/bin/pow-solver
    runHook postInstall
  '';