Modify init to work properly on M1

This commit is contained in:
Lindsay Wardell 2021-11-08 14:02:18 -08:00
parent 8ad148be5c
commit 34d5be8d27

View File

@ -1,7 +1,8 @@
let
sources = import ./nix/sources.nix;
nixpkgs = import sources.nixpkgs { };
niv = import sources.niv { };
system = if builtins.currentSystem == "aarch64-darwin" then "x86_64-darwin" else builtins.currentSystem;
nixpkgs = import sources.nixpkgs { inherit system; };
niv = nixpkgs.callPackage sources.niv { };
in with nixpkgs;
stdenv.mkDerivation {
name = "noredink-ui";