Nix flake 👀

This commit is contained in:
Jonas Meeuws 2024-12-03 23:46:09 +01:00
parent d79d86700c
commit 279a5cfa7c
No known key found for this signature in database
GPG key ID: BC0C864CF04D9AC4
4 changed files with 89 additions and 2 deletions

61
2024/flake.lock Normal file
View file

@ -0,0 +1,61 @@
{
"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": 1733212471,
"narHash": "sha256-M1+uCoV5igihRfcUKrr1riygbe73/dzNnzPsmaLCmpo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "55d15ad12a74eb7d4646254e13638ad0c4128776",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"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",
"version": 7
}

26
2024/flake.nix Normal file
View file

@ -0,0 +1,26 @@
{
description = "Zeus AoC 2024";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem(system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShell = pkgs.mkShell {
name = "Advent of Code 2024";
packages = [
pkgs.hyperfine
pkgs.postgresql_14
pkgs.ldc
pkgs.go
];
};
}
);
}

@ -1 +1 @@
Subproject commit 4fa48184508dcc7eb1b10c7fae667db940ba4dfa
Subproject commit c17fa2417d902044125061c0c1723b8ff1bc3851

@ -1 +1 @@
Subproject commit 49732a1a179beb7746aa54f1e2aa9e773f31f97d
Subproject commit ce1bcb790aea183311617375a589282965763f39