commit b605de9765c500f9e9bfeb37210f05d5f1adcb5d
parent 837875ddf4078ad86cbeb15d923ac5e659276e54
Author: Silas Brack <silasbrack@Silass-MacBook-Pro.local>
Date: Sat, 14 Mar 2026 11:36:29 +0100
Simplify
Diffstat:
| M | flake.lock | | | 40 | +++------------------------------------- |
| M | flake.nix | | | 37 | ++++++++++++------------------------- |
2 files changed, 15 insertions(+), 62 deletions(-)
diff --git a/flake.lock b/flake.lock
@@ -1,30 +1,12 @@
{
"nodes": {
- "flake-utils": {
- "inputs": {
- "systems": "systems"
- },
- "locked": {
- "lastModified": 1731533236,
- "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
- "owner": "numtide",
- "repo": "flake-utils",
- "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
- "type": "github"
- },
- "original": {
- "owner": "numtide",
- "repo": "flake-utils",
- "type": "github"
- }
- },
"nixpkgs": {
"locked": {
- "lastModified": 1749285348,
- "narHash": "sha256-frdhQvPbmDYaScPFiCnfdh3B/Vh81Uuoo0w5TkWmmjU=",
+ "lastModified": 1773282481,
+ "narHash": "sha256-b/GV2ysM8mKHhinse2wz+uP37epUrSE+sAKXy/xvBY4=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "3e3afe5174c561dee0df6f2c2b2236990146329f",
+ "rev": "fe416aaedd397cacb33a610b33d60ff2b431b127",
"type": "github"
},
"original": {
@@ -36,24 +18,8 @@
},
"root": {
"inputs": {
- "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
- },
- "systems": {
- "locked": {
- "lastModified": 1681028828,
- "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
- "owner": "nix-systems",
- "repo": "default",
- "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
- "type": "github"
- },
- "original": {
- "owner": "nix-systems",
- "repo": "default",
- "type": "github"
- }
}
},
"root": "root",
diff --git a/flake.nix b/flake.nix
@@ -1,29 +1,16 @@
{
- description = "My gleam monorepo";
- inputs = {
- nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
- flake-utils.url = "github:numtide/flake-utils";
- };
+ description = "CV";
+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
- outputs =
- {
- self,
- nixpkgs,
- flake-utils,
- }:
- (flake-utils.lib.eachDefaultSystem (
- system:
- let
- pkgs = import nixpkgs {
- inherit system;
+ outputs = { self, nixpkgs }:
+ let
+ systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
+ forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
+ in {
+ devShells = forAllSystems (pkgs: {
+ default = pkgs.mkShell {
+ buildInputs = [ pkgs.texliveSmall ];
};
- in
- {
- devShells.default = pkgs.mkShell {
- buildInputs = with pkgs; [
- texliveSmall
- ];
- };
- }
- ));
+ });
+ };
}