add default.nix and shell.nix with flake-compat

This commit is contained in:
Akshay 2021-10-19 20:46:03 +05:30
parent a1886854d9
commit ea2e234966
4 changed files with 12 additions and 22 deletions

6
default.nix Normal file
View File

@ -0,0 +1,6 @@
# The `default.nix` in flake-compat reads `flake.nix` and `flake.lock` from `src` and
# returns an attribute set of the shape `{ defaultNix, shellNix }`
(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
src = ./.;
}).defaultNix

View File

@ -1,21 +1,5 @@
{
"nodes": {
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1627913399,
"narHash": "sha256-hY8g6H2KFL8ownSiFeMOjwPC8P0ueXpCVEbxgda3pko=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "12c64ca55c1014cdc1b16ed5a804aa8576601ff2",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"import-cargo": {
"locked": {
"lastModified": 1594305518,
@ -65,7 +49,6 @@
},
"root": {
"inputs": {
"flake-compat": "flake-compat",
"import-cargo": "import-cargo",
"mozillapkgs": "mozillapkgs",
"nixpkgs": "nixpkgs"

View File

@ -8,11 +8,6 @@
flake = false;
};
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
import-cargo.url = github:edolstra/import-cargo;
};

6
shell.nix Normal file
View File

@ -0,0 +1,6 @@
# The `default.nix` in flake-compat reads `flake.nix` and `flake.lock` from `src` and
# returns an attribute set of the shape `{ defaultNix, shellNix }`
(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
src = ./.;
}).shellNix