aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-10-19 16:16:03 +0100
committerAkshay <[email protected]>2021-10-19 16:16:03 +0100
commitea2e23496672257dd1728ce36259249c3efb8aec (patch)
tree39d747916e4326e79b9c55a5f602219e38cff263
parenta1886854d9fa5f02fe755352b44f6aabf2711514 (diff)
add default.nix and shell.nix with flake-compat
-rw-r--r--default.nix6
-rw-r--r--flake.lock17
-rw-r--r--flake.nix5
-rw-r--r--shell.nix6
4 files changed, 12 insertions, 22 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..d4c7ec2
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,6 @@
1# The `default.nix` in flake-compat reads `flake.nix` and `flake.lock` from `src` and
2# returns an attribute set of the shape `{ defaultNix, shellNix }`
3
4(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
5 src = ./.;
6}).defaultNix
diff --git a/flake.lock b/flake.lock
index e8d9eb6..372771c 100644
--- a/flake.lock
+++ b/flake.lock
@@ -1,21 +1,5 @@
1{ 1{
2 "nodes": { 2 "nodes": {
3 "flake-compat": {
4 "flake": false,
5 "locked": {
6 "lastModified": 1627913399,
7 "narHash": "sha256-hY8g6H2KFL8ownSiFeMOjwPC8P0ueXpCVEbxgda3pko=",
8 "owner": "edolstra",
9 "repo": "flake-compat",
10 "rev": "12c64ca55c1014cdc1b16ed5a804aa8576601ff2",
11 "type": "github"
12 },
13 "original": {
14 "owner": "edolstra",
15 "repo": "flake-compat",
16 "type": "github"
17 }
18 },
19 "import-cargo": { 3 "import-cargo": {
20 "locked": { 4 "locked": {
21 "lastModified": 1594305518, 5 "lastModified": 1594305518,
@@ -65,7 +49,6 @@
65 }, 49 },
66 "root": { 50 "root": {
67 "inputs": { 51 "inputs": {
68 "flake-compat": "flake-compat",
69 "import-cargo": "import-cargo", 52 "import-cargo": "import-cargo",
70 "mozillapkgs": "mozillapkgs", 53 "mozillapkgs": "mozillapkgs",
71 "nixpkgs": "nixpkgs" 54 "nixpkgs": "nixpkgs"
diff --git a/flake.nix b/flake.nix
index f7f62aa..8a7c97a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -8,11 +8,6 @@
8 flake = false; 8 flake = false;
9 }; 9 };
10 10
11 flake-compat = {
12 url = "github:edolstra/flake-compat";
13 flake = false;
14 };
15
16 import-cargo.url = github:edolstra/import-cargo; 11 import-cargo.url = github:edolstra/import-cargo;
17 12
18 }; 13 };
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..9e96703
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,6 @@
1# The `default.nix` in flake-compat reads `flake.nix` and `flake.lock` from `src` and
2# returns an attribute set of the shape `{ defaultNix, shellNix }`
3
4(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
5 src = ./.;
6}).shellNix