apache_conf configuration.nix

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf configuration.nix相关的知识,希望对你有一定的参考价值。

{stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "cudnn-8.0";

  src = /root/cudnn-8.0-linux-x64-v5.1.tgz;

  #unpackPhase patchPhase configurePhase buildPhase checkPhase installPhase
  #fixupPhase distPhase
  phases = [ "unpackPhase" "installPhase" "fixupPhase" "distPhase" ];

  unpackCmd = ''
    tar -xzvf $src;
    stripHash $curSrc;
    mkdir trash
    cp -prd --no-preserve=timestamps $curSrc trash/$strippedName;
  '';

  installPhase = ''
    mkdir -p $out/bin
    chmod +x ../trash/$strippedName
    cp -r ../trash/include $out/include
    cp -r ../trash/lib64 $out/lib64
  '';

  #dontStrip = true;
  #dontPatchELF = true;
  #dontPatchShebangs = true;
}
{ pkgs, ... }:

{
  environment.systemPackages = with pkgs; [ cudnn ];
  nixpkgs.config.packageOverrides = pkgs: rec {
    cudnn = pkgs.callPackage ./install-cudnn.nix {};
  };
}

以上是关于apache_conf configuration.nix的主要内容,如果未能解决你的问题,请参考以下文章

apache_conf configuration.nix

apache_conf configuration.nix

apache_conf configuration.nix

apache_conf configuration.nix

apache_conf configuration.nix

apache_conf configuration.nix