diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-17T09·08+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-20T10·26+0100 |
commit | 59f74814111045b6d74d2a8f5b4f4bfbd1cacd85 (patch) | |
tree | d87397c2b1f32bdc1d3df0ab4d4f62d1cf065426 /website/sandbox | |
parent | 7833632a7961038e8898ef287fd2dedf8fa7f33b (diff) |
Revise previous opinions about absolute paths GT <bracket-notation>
Unforeseen problem: `buildkite-agent` runs its builds in a separate directory, so if I want the `nix-build` command to build the newly checked out code, I need to set <briefcase> to the CWD.
Diffstat (limited to 'website/sandbox')
-rw-r--r-- | website/sandbox/learnpianochords/shell.nix | 3 | ||||
-rw-r--r-- | website/sandbox/learnpianochords/src/server/default.nix | 2 | ||||
-rw-r--r-- | website/sandbox/learnpianochords/src/server/shell.nix | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/website/sandbox/learnpianochords/shell.nix b/website/sandbox/learnpianochords/shell.nix index 6cc05d099177..1a9c967f7fea 100644 --- a/website/sandbox/learnpianochords/shell.nix +++ b/website/sandbox/learnpianochords/shell.nix @@ -1,5 +1,6 @@ let - pkgs = import /home/wpcarro/nixpkgs {}; + briefcase = import <briefcase> {}; + pkgs = briefcase.third_party.pkgs; in pkgs.mkShell { buildInputs = with pkgs; [ elmPackages.elm diff --git a/website/sandbox/learnpianochords/src/server/default.nix b/website/sandbox/learnpianochords/src/server/default.nix index 6ed68d4417f4..87de69cbd627 100644 --- a/website/sandbox/learnpianochords/src/server/default.nix +++ b/website/sandbox/learnpianochords/src/server/default.nix @@ -1,5 +1,5 @@ let - briefcase = import /home/wpcarro/briefcase {}; + briefcase = import <briefcase> {}; in briefcase.buildHaskell.program { name = "server"; srcs = builtins.path { diff --git a/website/sandbox/learnpianochords/src/server/shell.nix b/website/sandbox/learnpianochords/src/server/shell.nix index a655c15871f9..ab470841e6c1 100644 --- a/website/sandbox/learnpianochords/src/server/shell.nix +++ b/website/sandbox/learnpianochords/src/server/shell.nix @@ -1,5 +1,5 @@ let - briefcase = import /home/wpcarro/briefcase {}; + briefcase = import <briefcase> {}; in briefcase.buildHaskell.shell { deps = hpkgs: with hpkgs; [ hspec |