added nix flake

This commit is contained in:
2026-10-24 17:07:47 -04:00
parent 826cf04095
commit 29b96985dc
4 changed files with 64 additions and 0 deletions

14
package.nix Normal file
View File

@@ -0,0 +1,14 @@
{ lib, rustPlatform }:
rustPlatform.buildRustPackage {
pname = "rusty-pw";
version = (lib.importTOML ./Cargo.toml).package.version;
src = lib.cleanSource ./.;
cargoLock.lockFile = ./Cargo.lock;
meta = {
description = "Random word + number generator";
mainProgram = "rusty-pw";
};
}