-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add default dev shell and remote extra packages
- Loading branch information
1 parent
114dbf8
commit 26ae0c1
Showing
2 changed files
with
35 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,38 @@ | ||
{inputs, ...}: { | ||
# imports = [ ]; | ||
perSystem = { | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: { | ||
devshells.jsonresume = { | ||
packages = [ | ||
pkgs.resumed | ||
#pkgs.resume-cli | ||
pkgs.puppeteer-cli | ||
pkgs.python311Packages.weasyprint | ||
pkgs.nodePackages_latest.pnpm | ||
]; | ||
commands = [ | ||
{ | ||
name = "build-all"; | ||
command = "nix build .#jsonresume"; | ||
} | ||
{ | ||
name = "build-data"; | ||
command = "nix build .#jsonresume-json"; | ||
} | ||
{ | ||
name = "build-html"; | ||
command = "nix build .#jsonresume-html"; | ||
} | ||
{ | ||
name = "build-pdf"; | ||
command = "nix build .#jsonresume-pdf"; | ||
} | ||
# { name = "validate"; command = "${lib.getExe pkgs.resume-cli} validate"; } | ||
# { name = "export-pdf"; command = "${lib.getExe pkgs.resume-cli} export --format pdf"; } | ||
# { name = "export-html"; command = "${lib.getExe pkgs.resume-cli} export --format html"; } | ||
# { name = "server"; command = "${lib.getExe pkgs.resume-cli} serve"; } | ||
]; | ||
{ inputs, ... }: { | ||
perSystem = { config, lib, pkgs, ... }: { | ||
devshells = rec { | ||
default = jsonresume; | ||
jsonresume = { | ||
packages = [ | ||
pkgs.resumed | ||
#pkgs.resume-cli | ||
pkgs.puppeteer-cli | ||
pkgs.python311Packages.weasyprint | ||
pkgs.nodePackages_latest.pnpm | ||
]; | ||
commands = [ | ||
{ | ||
name = "build-all"; | ||
command = "nix build .#jsonresume"; | ||
} | ||
{ | ||
name = "build-data"; | ||
command = "nix build .#jsonresume-json"; | ||
} | ||
{ | ||
name = "build-html"; | ||
command = "nix build .#jsonresume-html"; | ||
} | ||
{ | ||
name = "build-pdf"; | ||
command = "nix build .#jsonresume-pdf"; | ||
} | ||
# { name = "validate"; command = "${lib.getExe pkgs.resume-cli} validate"; } | ||
# { name = "export-pdf"; command = "${lib.getExe pkgs.resume-cli} export --format pdf"; } | ||
# { name = "export-html"; command = "${lib.getExe pkgs.resume-cli} export --format html"; } | ||
# { name = "server"; command = "${lib.getExe pkgs.resume-cli} serve"; } | ||
]; | ||
}; | ||
}; | ||
}; | ||
} |