SimulaVR / Simula

Linux VR Desktop
MIT License
2.97k stars 91 forks source link

Building with nix (stack --nix) fails because of missing openvr.nix #21

Closed lboklin closed 6 years ago

lboklin commented 6 years ago

Output from stack --nix --no-nix-pure --nix-shell-options --show-trace exec -- simulavr:

Warning: /data/src/haskell/Simula/stack.yaml: The `*` ghc-options key is not recommended. Consider using $locals, or if really needed, $everything
error: while evaluating the attribute ‘buildInputs’ of the derivation ‘SimulaHS’ at /nix/store/sa4l63mh06l9b1pbs5xf7f8v5as4wx2r-nixos-18.03pre125750.a6dca042722/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating ‘getOutput’ at /nix/store/sa4l63mh06l9b1pbs5xf7f8v5as4wx2r-nixos-18.03pre125750.a6dca042722/nixos/lib/attrsets.nix:450:23, called from undefined position:
while evaluating anonymous function at /nix/store/sa4l63mh06l9b1pbs5xf7f8v5as4wx2r-nixos-18.03pre125750.a6dca042722/nixos/pkgs/stdenv/generic/make-derivation.nix:97:17, called from undefined position:
while evaluating ‘callPackageWith’ at /nix/store/sa4l63mh06l9b1pbs5xf7f8v5as4wx2r-nixos-18.03pre125750.a6dca042722/nixos/lib/customisation.nix:113:35, called from /data/src/haskell/Simula/shell.nix:14:31:
while evaluating ‘makeOverridable’ at /nix/store/sa4l63mh06l9b1pbs5xf7f8v5as4wx2r-nixos-18.03pre125750.a6dca042722/nixos/lib/customisation.nix:72:24, called from /nix/store/sa4l63mh06l9b1pbs5xf7f8v5as4wx2r-nixos-18.03pre125750.a6dca042722/nixos/lib/customisation.nix:117:8:
getting status of ‘/data/src/haskell/Simula/simula-openvr/openvr.nix’: No such file or directory
lboklin commented 6 years ago

User error. Carry on.

Edit: I see this has been a problem before. I went into the simula-openvr dir and discovered that for some reason all the files within had been deleted. It was fixed with a simple git reset --hard.

georgewsinger commented 6 years ago

@lboklin Our nix installation is broken at the moment but we're making a debian package for Ubuntu. What are your specs (distro video card, and VR HMD in particular) right now?

lboklin commented 6 years ago

NixOS, Nvidia GTX 680, no HMD. Not exactly a VR setup :) I was just too curious to stay away considering it checks a lot of items on my list of special interests (Linux, VR, Haskell..)