forked from mszep/pandoc_resume
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
24 lines (22 loc) · 796 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
inputs = { nixpkgs.url = "github:nixos/nixpkgs"; };
outputs = { self, nixpkgs }:
let
supportedSystems = nixpkgs.lib.systems.flakeExposed;
perSystem = nixpkgs.lib.genAttrs supportedSystems;
pkgsFor = system: import nixpkgs { inherit system; };
buildResumeFor = system:
let pkgs = pkgsFor system;
in pkgs.runCommand "build-resume" {
nativeBuildInputs = with pkgs; [ pandoc texlive.combined.scheme-context ];
} ''
cd ${self}
make OUT_DIR="$out"
'';
in {
packages.resume = perSystem (system: buildResumeFor system);
devShell =
perSystem (system: import ./shell.nix { pkgs = pkgsFor system; });
defaultPackage = perSystem (system: self.packages.resume.${system});
};
}