aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.nix13
-rw-r--r--flake.lock17
-rw-r--r--flake.nix4
-rw-r--r--shell.nix13
4 files changed, 47 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..9eb132a
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,13 @@
1(import
2 (
3 let
4 lock = builtins.fromJSON (builtins.readFile ./flake.lock);
5 in
6 fetchTarball {
7 url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
8 sha256 = lock.nodes.flake-compat.locked.narHash;
9 }
10 )
11 {
12 src = ./.;
13 }).shellNix
diff --git a/flake.lock b/flake.lock
index 1feb05e..7e8f2f6 100644
--- a/flake.lock
+++ b/flake.lock
@@ -1,5 +1,21 @@
1{ 1{
2 "nodes": { 2 "nodes": {
3 "flake-compat": {
4 "flake": false,
5 "locked": {
6 "lastModified": 1606424373,
7 "narHash": "sha256-oq8d4//CJOrVj+EcOaSXvMebvuTkmBJuT5tzlfewUnQ=",
8 "owner": "edolstra",
9 "repo": "flake-compat",
10 "rev": "99f1c2157fba4bfe6211a321fd0ee43199025dbf",
11 "type": "github"
12 },
13 "original": {
14 "owner": "edolstra",
15 "repo": "flake-compat",
16 "type": "github"
17 }
18 },
3 "gitignore": { 19 "gitignore": {
4 "flake": false, 20 "flake": false,
5 "locked": { 21 "locked": {
@@ -80,6 +96,7 @@
80 }, 96 },
81 "root": { 97 "root": {
82 "inputs": { 98 "inputs": {
99 "flake-compat": "flake-compat",
83 "gitignore": "gitignore", 100 "gitignore": "gitignore",
84 "mozillapkgs": "mozillapkgs", 101 "mozillapkgs": "mozillapkgs",
85 "naersk": "naersk", 102 "naersk": "naersk",
diff --git a/flake.nix b/flake.nix
index b067ee0..07a9a06 100644
--- a/flake.nix
+++ b/flake.nix
@@ -10,6 +10,10 @@
10 url = "github:hercules-ci/gitignore"; 10 url = "github:hercules-ci/gitignore";
11 flake=false; 11 flake=false;
12 }; 12 };
13 flake-compat = {
14 url = "github:edolstra/flake-compat";
15 flake = false;
16 };
13 }; 17 };
14 18
15 outputs = { self, nixpkgs, utils, naersk, mozillapkgs, gitignore, ... }: 19 outputs = { self, nixpkgs, utils, naersk, mozillapkgs, gitignore, ... }:
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..9eb132a
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,13 @@
1(import
2 (
3 let
4 lock = builtins.fromJSON (builtins.readFile ./flake.lock);
5 in
6 fetchTarball {
7 url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
8 sha256 = lock.nodes.flake-compat.locked.narHash;
9 }
10 )
11 {
12 src = ./.;
13 }).shellNix