2023-10-27 17:12:20 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-07-24 20:24:59 +02:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-11-15 13:25:12 +01:00
|
|
|
ide = {
|
2023-11-18 07:49:38 +01:00
|
|
|
url = "github:ivandimitrov8080/flake-ide";
|
2023-11-15 13:25:12 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-10-27 17:12:20 +02:00
|
|
|
};
|
|
|
|
|
2024-05-22 15:48:54 +02:00
|
|
|
outputs = { nixpkgs, ide, ... }:
|
2023-10-27 17:12:20 +02:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
2024-05-22 15:48:54 +02:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [
|
|
|
|
(final: prev: {
|
2024-07-24 20:24:59 +02:00
|
|
|
nvim = ide.nvim.${system}.standalone.default {
|
2024-05-22 15:48:54 +02:00
|
|
|
plugins = {
|
|
|
|
lsp.servers = {
|
|
|
|
html.enable = true;
|
|
|
|
tsserver.enable = true;
|
|
|
|
jsonls.enable = true;
|
|
|
|
tailwindcss.enable = true;
|
|
|
|
cssls.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
2023-11-15 13:25:12 +01:00
|
|
|
};
|
2023-10-27 17:12:20 +02:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
coreutils-full
|
2024-07-24 20:24:59 +02:00
|
|
|
nodejs
|
2023-11-15 13:25:12 +01:00
|
|
|
nvim
|
2023-10-27 17:12:20 +02:00
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShell.${system} = pkgs.mkShell {
|
|
|
|
inherit buildInputs;
|
|
|
|
};
|
2024-07-24 20:59:03 +02:00
|
|
|
packages.${system}.default = pkgs.buildNpmPackage {
|
2023-12-17 10:35:42 +01:00
|
|
|
pname = "idimitrov.dev";
|
2024-07-24 20:59:03 +02:00
|
|
|
version = "0.1.1";
|
2023-12-17 10:35:42 +01:00
|
|
|
src = ./.;
|
2024-07-24 20:24:59 +02:00
|
|
|
npmDepsHash = "sha256-+GgP+cilcphMZxns/EM2TTRDuQi8RE1PkxsDG3gXZEQ=";
|
2023-12-17 10:35:42 +01:00
|
|
|
postInstall = ''
|
|
|
|
rm -rf $out/lib
|
2024-07-24 20:38:13 +02:00
|
|
|
cp -r ./out/* $out/
|
2023-12-17 10:35:42 +01:00
|
|
|
'';
|
|
|
|
};
|
2023-10-27 17:12:20 +02:00
|
|
|
};
|
|
|
|
}
|