jonringer / nix-template

Make creating nix expressions easy
Creative Commons Zero v1.0 Universal
205 stars 8 forks source link

Instructions for aarch64 #32

Closed 573 closed 2 years ago

573 commented 2 years ago

Trying to add nix-template to my home-manager configuration I get:

$HOST = aarch64-unknown-linux-gnu $TARGET = aarch64-unknown-linux-gnu openssl-sys = 0.9.65 It looks like you're compiling on Linux and also targeting Linux. Currently this requires the pkg-config utility to find OpenSSL but unfortunately pkg-config could not be found. If you have OpenSSL installed you can likely fix this by installing pkg-config.

I use this expression:

nix-template =
  self.ever-given.buildRustPackage {
    src =
      super.fetchFromGitHub {
        inherit (sources.nix-template) owner repo rev sha256;
       }; 
  };
573 commented 2 years ago

Added pkg-config to nativeBuildInputs plus openssl to buildInputs for it to build.