advent-of-code/flake.nix

28 lines
570 B
Nix
Raw Normal View History

2022-11-27 02:08:13 +00:00
{
description = "Advent of Code";
inputs = {
2023-12-01 15:05:28 +00:00
nixpkgs.url = "nixpkgs/nixos-unstable";
2022-11-27 02:08:13 +00:00
};
2023-12-01 15:05:28 +00:00
outputs = { self, nixpkgs }:
2022-11-27 02:08:13 +00:00
let
version = builtins.string 0 8 self.lastModifiedDate;
supportedSystems = [ "x86_64-linux" ];
in
{
devShell."x86_64-linux" =
let
2023-12-01 15:05:28 +00:00
pkgs = import nixpkgs { system = "x86_64-linux"; };
2022-11-27 02:08:13 +00:00
in
pkgs.mkShell {
name = "aoc-devshell";
buildInputs = [
2023-12-01 15:05:28 +00:00
# pkgs.pkg-config
# pkgs.openssl
pkgs.rustup
2022-11-27 02:08:13 +00:00
];
};
};
}