Drop support for dir-locals.nix, <nixpkgs>, etc.
In the spirit of Marie Kondo, I'm tidying up!
TL;DR:
- Prefer .envrc `use_nix` and delete all dir-locals.nix files
- Remove ~all references to <nixpkgs>, <unstable>, <depot> and prefer
referencing each with briefcase.third_party.{pkgs,unstable,depot}
- Delete nixBufferFromShell function since I was only using that in
dir-locals.nix files
This commit is contained in:
parent
51ec9e0d88
commit
0c71fc9d1d
55 changed files with 102 additions and 118 deletions
|
|
@ -1 +1,2 @@
|
|||
source_up
|
||||
use_nix
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
let
|
||||
briefcase = import <briefcase> {};
|
||||
in briefcase.utils.nixBufferFromShell ./shell.nix
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
briefcase = import <briefcase> {};
|
||||
pkgs = briefcase.third_party.pkgs;
|
||||
in pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
nodejs
|
||||
|
|
|
|||
2
scratch/groceries/.envrc
Normal file
2
scratch/groceries/.envrc
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
source_up
|
||||
use_nix
|
||||
|
|
@ -1,8 +1,5 @@
|
|||
let
|
||||
pkgs = import <unstable> {};
|
||||
in pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
(haskellPackages.ghcWithPackages (hpkgs: with hpkgs; [
|
||||
]))
|
||||
];
|
||||
briefcase = import <briefcase> {};
|
||||
in briefcase.buildHaskell.shell {
|
||||
deps = hpkgs: [];
|
||||
}
|
||||
|
|
|
|||
2
scratch/haskell-programming-from-first-principles/.envrc
Normal file
2
scratch/haskell-programming-from-first-principles/.envrc
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
source_up
|
||||
use_nix
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
let
|
||||
pkgs = import <unstable> {};
|
||||
in pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
(haskellPackages.ghcWithPackages (hpkgs: with hpkgs; [
|
||||
hpkgs.quickcheck-simple
|
||||
hpkgs.checkers
|
||||
]))
|
||||
briefcase = import <briefcase> {};
|
||||
in briefcase.buildHaskell.shell {
|
||||
deps = hpkgs: with hpkgs; [
|
||||
quickcheck-simple
|
||||
checkers
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue