From 5607ab9f535569a5fcafe00e1d7d9bed4cff6c18 Mon Sep 17 00:00:00 2001 From: winston Date: Sun, 19 Mar 2023 07:34:15 +0100 Subject: [PATCH] build: add nix shell --- flake.lock | 41 +++++++++++++++++++++++++++++++++++++++++ flake.nix | 15 +++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..e6b4aab --- /dev/null +++ b/flake.lock @@ -0,0 +1,41 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1678901627, + "narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1678987615, + "narHash": "sha256-lF4agoB7ysQGNHRXvOqxtSKIZrUZwClA85aASahQlYM=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "194c2aa446b2b059886bb68be15ef6736d5a8c31", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..1fac8ec --- /dev/null +++ b/flake.nix @@ -0,0 +1,15 @@ +{ + inputs.flake-utils.url = "github:numtide/flake-utils"; + outputs = { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem ( + system: let + pkgs = nixpkgs.legacyPackages.${system}; + in { + devShells.default = pkgs.mkShell {buildInputs = [pkgs.deno];}; + } + ); +}