Fixed flake check errors
Also constrained support to just x86_64-linux, I ran into issues with aarch64-linux but I don't have a usecase for that anyway.
This commit is contained in:
parent
c9beaf1501
commit
d92ebe37a8
|
@ -10,9 +10,8 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "numtide",
|
"id": "flake-utils",
|
||||||
"repo": "flake-utils",
|
"type": "indirect"
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
|
|
26
flake.nix
26
flake.nix
|
@ -3,17 +3,18 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
|
||||||
flake-utils.url = github:numtide/flake-utils;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
}:
|
}: let
|
||||||
with flake-utils.lib;
|
pkgs = import nixpkgs {
|
||||||
eachSystem allSystems (system: let
|
inherit system;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
};
|
||||||
|
lib = pkgs.lib;
|
||||||
|
system = "x86_64-linux";
|
||||||
nerdfonts-hack = pkgs.nerdfonts.override {
|
nerdfonts-hack = pkgs.nerdfonts.override {
|
||||||
fonts = ["Hack"];
|
fonts = ["Hack"];
|
||||||
};
|
};
|
||||||
|
@ -24,9 +25,10 @@
|
||||||
# Create definitions like \def\email{$EMAIL}
|
# Create definitions like \def\email{$EMAIL}
|
||||||
# Each \email command in the tex document will be populated by an EMAIL
|
# Each \email command in the tex document will be populated by an EMAIL
|
||||||
# variable (can be set as an environment variable)
|
# variable (can be set as an environment variable)
|
||||||
texvars = toString (pkgs.lib.concatMapStrings (x: ''\def\${x}{${"$" + pkgs.lib.toUpper x}}'') vars);
|
texvars = toString (lib.concatMapStrings (x: ''\def\${x}{${"$" + lib.toUpper x}}'') vars);
|
||||||
in rec {
|
in {
|
||||||
packages = {
|
packages.${system} = {
|
||||||
|
# inherit system;
|
||||||
alejandro-resume = pkgs.stdenvNoCC.mkDerivation rec {
|
alejandro-resume = pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
name = "alejandro-resume";
|
name = "alejandro-resume";
|
||||||
src = self;
|
src = self;
|
||||||
|
@ -36,7 +38,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
prefix=${builtins.placeholder "out"}
|
prefix=${builtins.placeholder "out"}
|
||||||
export PATH="${pkgs.lib.makeBinPath propogatedBuildInputs}";
|
export PATH="${lib.makeBinPath propogatedBuildInputs}";
|
||||||
DEBUG=false
|
DEBUG=false
|
||||||
DIR=$(mktemp -d)
|
DIR=$(mktemp -d)
|
||||||
RES=$(pwd)/alejandro_resume.pdf
|
RES=$(pwd)/alejandro_resume.pdf
|
||||||
|
@ -94,10 +96,10 @@
|
||||||
chmod u+x $out/bin/alejandro-resume
|
chmod u+x $out/bin/alejandro-resume
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
default = self.packages.${system}.alejandro-resume;
|
||||||
};
|
};
|
||||||
defaultPackage = packages.alejandro-resume;
|
|
||||||
|
|
||||||
devShells = {
|
devShells.${system} = {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
name = "default";
|
name = "default";
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
|
@ -120,5 +122,5 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue