on master help sign in
Hack around terrible thing in nixpkgs

1. nixpkgs assuems that any dep which is a single file is a setup hook that should be EVALUATED. Wat. 2. haskell .env derivations produce a single file which fails to run as a script. 3. Our "pinBuildInputs" which uses regular dependencies fails when we add haskell shells as a build input.

commitcc5549c52383cbd6f455ecfc710a3b35e474b45c authorJohn Ericson <John.Ericson@Obsidian.Systems> dateMon 7 Oct 2019, 21:40 (7 years ago) parent24d284c
1 file changed+6−1
release.nix+6−1
release.nix+6−1
@@ -65,7 +65,12 @@ let
6565 command = local-self.command;
6666 skeleton = import ./skeleton { obelisk = local-self; };
6767 serverSkeletonExe = skeleton.exe;
68− serverSkeletonShell = skeleton.shells.ghc;
68+ # TODO fix nixpkgs so it doesn't try to run the result of haskell shells as setup hooks.
69+ serverSkeletonShell = local-self.nixpkgs.runCommand "shell-safe-for-dep" {} ''
70+ touch "$out"
71+ echo "return" >> "$out"
72+ cat "${skeleton.shells.ghc}" >> "$out"
73+ '';
6974 androidObelisk = import ./. (self-args // {
7075 config.android_sdk.accept_license = true;
7176 });