add devshell
This commit is contained in:
parent
7032c868cb
commit
f461929b70
1 changed files with 10 additions and 10 deletions
18
flake.nix
18
flake.nix
|
|
@ -1,21 +1,21 @@
|
|||
{
|
||||
description = "osbm.dev astro website";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
outputs = { nixpkgs, ...}:
|
||||
outputs =
|
||||
{ nixpkgs, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
defaultPackage.x86_64-linux = pkgs.stdenv.mkDerivation {
|
||||
name = "osbm.dev";
|
||||
src = ./.;
|
||||
buildInputs = [ pkgs.nodejs ];
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r * $out
|
||||
devShells."${system}".default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
nodejs
|
||||
];
|
||||
shellHook = ''
|
||||
echo Start developing the osbm.dev
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue