私はnixを使ってみようとしていますが、nixがnanoをビルドできないという問題が発生しましたが、私は確信していません。私はOSX 10.11.4(私もマックに非常に新しいです)の上だと、次のエラーを取得しています:OSX上のNixはnanoを構築できませんか?
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/h1afxzyfxh7xc8b0scvq831s1yapczgm-nano-2.6.3/share/locale\" -DSYSCONFDIR=\"/etc\" -I/nix/store/gmb9mxkm5mqfnhlav16rx5x7wf070qqf-ncurses-5.9-dev/include/ncursesw -I/nix/store/gmb9mxkm5mqfnhlav16rx5x7wf070qqf-ncurses-5.9-dev/include -g -O2 -Wall -c -o winio.o winio.c
winio.c:513:15: error: use of undeclared identifier 'TIOCLINUX'
if (ioctl(0, TIOCLINUX, &modifiers) >= 0 && (modifiers & 0x04)) {
^
1 error generated.
は、私が間違ってここに設定しているものはありますか?私がやったことは、curl ... | sh
でセットアップnixを実行した後、source ~/.nix-profile/etc/profile.d/nix.sh
でセットアップしました。私はこのshell.nixからビルドしようとしている
:
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs;
# Build a default.nix file from our .cabal file:
here = ./.;
project = pkgs.stdenv.mkDerivation ({
name = "default.nix";
buildCommand = ''
${pkgs.cabal2nix}/bin/cabal2nix file://${here} > $out
'';
});
# Use the package set for our compiler:
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
# Helper function that gets Nix-packaged dependencies off GitHub.
# GitHub project needs a default.nix file for this to work.
fetchHaskell = { url, rev, sha256 }:
haskellPackages.callPackage (pkgs.fetchgit { inherit url rev sha256; }) {};
drv = haskellPackages.callPackage project {
# Specify GitHub dependencies here.
# You can get url, rev and sha256 by running 'nix-prefetch-git [email protected]'
...snip....
};
in
if pkgs.lib.inNixShell then drv.env else drv
任意のポインタをいただければ幸いです。
感謝。私は、これは、ナノの側面か、それが醸造でそれをパッチで解決するのと同じ方法で修正する必要があると思う。 – Gregory