add devshell

This commit is contained in:
Osman Faruk Bayram 2025-03-16 21:11:45 +03:00
parent 7032c868cb
commit f461929b70

View file

@ -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
''; '';
}; };
};
};
} }