Skip to content

Commit

Permalink
dev: no need to use flakes for now
Browse files Browse the repository at this point in the history
  • Loading branch information
offlinehacker committed Jan 11, 2022
1 parent 0886635 commit c13a03a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 65 deletions.
6 changes: 1 addition & 5 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
# reload when these files change
watch_file flake.nix
watch_file flake.lock

eval "$(nix print-dev-env)"
use_nix
27 changes: 0 additions & 27 deletions flake.lock

This file was deleted.

30 changes: 0 additions & 30 deletions flake.nix

This file was deleted.

21 changes: 18 additions & 3 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
src = ./.;
}).shellNix
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-21.11.tar.gz") { } }:

pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = with pkgs; [
# needed by nix
nixpkgs-fmt
rnix-lsp

# for building docker images
docker-client
gnumake
git

# go dev
go
];
}

0 comments on commit c13a03a

Please sign in to comment.