aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--default.nix2
-rw-r--r--nix/nixpkgs.nix6
-rw-r--r--nix/tools.nix (renamed from tools.nix)4
4 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5097b56..46bbcc7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
start:
- @nix-shell tools.nix --command "tmuxinator local"
+ @nix-shell nix/tools.nix --command "tmuxinator local"
stop:
@tmux kill-session -t sharedCost
diff --git a/default.nix b/default.nix
index 7969fc7..fbb3725 100644
--- a/default.nix
+++ b/default.nix
@@ -1,4 +1,4 @@
-with import <nixpkgs> {};
+with import ./nix/nixpkgs.nix {};
let
reflex-platform = import (pkgs.fetchFromGitHub {
diff --git a/nix/nixpkgs.nix b/nix/nixpkgs.nix
new file mode 100644
index 0000000..9d61277
--- /dev/null
+++ b/nix/nixpkgs.nix
@@ -0,0 +1,6 @@
+import ((import <nixpkgs> {}).fetchFromGitHub {
+ owner = "NixOS";
+ repo = "nixpkgs";
+ rev = "19.09";
+ sha256 = "1ib96has10v5nr6bzf7v8kw7yzww8zanxgw2qi1ll1sbv6kj6zpd";
+})
diff --git a/tools.nix b/nix/tools.nix
index 9a506c7..c14e4e2 100644
--- a/tools.nix
+++ b/nix/tools.nix
@@ -1,4 +1,6 @@
-with import <nixpkgs> {}; {
+with import ./nixpkgs.nix {};
+
+{
env = stdenv.mkDerivation {
name = "tools";
buildInputs = with pkgs; with nodePackages; [