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.
This commit is contained in:
William Carroll 2020-08-17 10:08:32 +01:00
parent 7833632a79
commit 59f7481411
11 changed files with 12 additions and 21 deletions

View file

@ -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

View file

@ -1,5 +1,5 @@
let
briefcase = import /home/wpcarro/briefcase {};
briefcase = import <briefcase> {};
in briefcase.buildHaskell.program {
name = "server";
srcs = builtins.path {

View file

@ -1,5 +1,5 @@
let
briefcase = import /home/wpcarro/briefcase {};
briefcase = import <briefcase> {};
in briefcase.buildHaskell.shell {
deps = hpkgs: with hpkgs; [
hspec