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

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake path:.

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
/target
flake.lock
.direnv/

6
Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "lwn-sub-snoozer"
version = "0.1.0"
edition = "2024"
[dependencies]

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
];
};
});
}

3
src/main.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}