Ivan Dimitrov
3f2e7cd352
commit ef058ba8e3498eb0b0606d8cf55c41a8718b7820 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sat Dec 23 19:20:50 2023 +0200 set version commit 3b6cf8c60b0803b8316cdd5b0884671b980b3600 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sat Dec 23 19:17:45 2023 +0200 formatting commit 218cfd137f7c1b71399036f6101b4614aaec1406 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sat Dec 23 19:15:11 2023 +0200 add more fields to data json commit bdb87f634b6e1da9dba7c9fd5637731bb39df4f2 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sat Dec 23 18:51:30 2023 +0200 parsing json file commit 7d83d7d85ad61bf181a30bf4a1855928f222d768 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sat Dec 23 18:23:10 2023 +0200 move data to json file commit c6fcac47cbd1da4003d9c562a59f9d2075c6b789 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 22 20:08:29 2023 +0200 separate files commit 2079aa20aa78ae8c8bd4d0be2b87fa637cf2f8bb Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 22 19:37:47 2023 +0200 make it wrap automatically
67 lines
1.6 KiB
Nix
67 lines
1.6 KiB
Nix
{
|
|
description = "CV template";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs";
|
|
systems.url = "github:nix-systems/x86_64-linux";
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
ide = {
|
|
url = "github:ivandimitrov8080/flake-ide";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, systems, ide }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
pname = "cv";
|
|
version = "0.1.1";
|
|
src = ./.;
|
|
nvim = ide.nvim.${system}.standalone {
|
|
plugins = {
|
|
lsp.servers = {
|
|
tsserver.enable = true;
|
|
jsonls.enable = true;
|
|
tailwindcss.enable = true;
|
|
};
|
|
};
|
|
};
|
|
buildInputs = with pkgs; [
|
|
nvim
|
|
inotify-tools
|
|
];
|
|
nativeBuildInputs = with pkgs; [
|
|
bun
|
|
];
|
|
in
|
|
{
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
inherit pname buildInputs nativeBuildInputs;
|
|
shellHook = ''
|
|
echo "$$" > ./pid
|
|
monitor() {
|
|
while true; do
|
|
inotifywait -e modify ${pname}.tsx > /dev/null 2>&1
|
|
make
|
|
pkill -HUP mupdf
|
|
done
|
|
}
|
|
monitor > /dev/null 2>&1 &
|
|
'';
|
|
};
|
|
packages.${system}.default = pkgs.buildNpmPackage rec {
|
|
inherit nativeBuildInputs pname version src;
|
|
npmDepsHash = "sha256-1fqP3HFhziup3U97t+Kx8JMAd+ZpJmz5WZATR1CaQZY=";
|
|
postInstall = ''
|
|
ls -alh
|
|
mkdir -p $out
|
|
rm -rf $out/lib
|
|
'';
|
|
};
|
|
};
|
|
}
|