Skip to content

Commit

Permalink
nix init
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeleet committed Jan 20, 2024
1 parent 275feb4 commit e258158
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"metadata": {
"minDenoVersion": "1.37",
"name": "hello_deno",
"version": "1.1.0"
"version": "1.1.1"
},
"include": ["**/*"],
"exclude": ["vendor/*"],
Expand Down
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
description = "A Nix-flake-based Deno development environment";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

outputs = { self, nixpkgs }:
let
overlays = [
(final: prev: rec {
deno = prev.deno;
just = prev.just;
})
];
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit overlays system; };
});
in
{
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [ deno just ];
};
});
};
}

0 comments on commit e258158

Please sign in to comment.