저는 nix를 사용하려고하는데 nix가 nano를 만들지 못하는 것과 관련된 문제가 발생했습니다. 그러나 확실하지 않습니다. 나는 OSX 10.11.4에있어 (I뿐만 아니라 맥 아주 새로운 해요) 다음과 같은 오류가 점점 오전 : 내가 잘못 여기서 설정 한 뭔가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
과 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