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