This commit is contained in:
dolphinau 2025-07-02 13:59:41 +02:00
commit df96c91b4b
No known key found for this signature in database
5 changed files with 53 additions and 0 deletions

40
flake.nix Normal file
View file

@ -0,0 +1,40 @@
{
description = "lwn-sub-snoozer";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
fenix = {
url = "github:nix-community/fenix/monthly";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
flake-utils,
fenix,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = {
default = self.packages.${system}.myapp;
};
# $ nix develop
devShells.default = pkgs.mkShell {
packages = [
pkgs.gnumake
# Nix
pkgs.nixpkgs-fmt
pkgs.nil
# Rust
fenix.packages.${system}.default.toolchain
];
};
});
}