2005
5dc057f624
now double digit counter, but its code is janky needs fix melody has now became an option, by default it doesn not play it use -m /path/to/melody.mp3 flake changes
78 lines
1.7 KiB
Nix
78 lines
1.7 KiB
Nix
{
|
|
description = "romodoro builder";
|
|
|
|
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
supportedSystems =
|
|
[
|
|
"x86_64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-linux"
|
|
"aarch64-darwin"
|
|
];
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
|
|
nixpkgsFor = forAllSystems (system: import nixpkgs {
|
|
inherit system;
|
|
});
|
|
|
|
in
|
|
{
|
|
|
|
packages = forAllSystems (system:
|
|
let
|
|
pkgs = nixpkgsFor.${system};
|
|
in
|
|
{
|
|
default = pkgs.rustPlatform.buildRustPackage {
|
|
pname = "romodoro";
|
|
version = "0.1.1";
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [
|
|
pkgs.pkg-config
|
|
pkgs.alsa-oss
|
|
pkgs.alsa-lib.dev
|
|
pkgs.alsa-utils
|
|
pkgs.git
|
|
pkgs.cmake
|
|
];
|
|
buildInputs = [
|
|
pkgs.alsa-oss
|
|
pkgs.alsa-lib.dev
|
|
pkgs.alsa-utils
|
|
pkgs.git
|
|
pkgs.pkg-config
|
|
pkgs.git
|
|
pkgs.cmake
|
|
];
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
};
|
|
});
|
|
|
|
devShells.default =
|
|
with nixpkgs; mkShell
|
|
{
|
|
LIBCLANG_PATH = "${pkgs.llvmPackages_17.libclang.lib}/lib";
|
|
RUST_BACKTRACE = 1;
|
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
|
|
packages = with pkgs; [
|
|
rustc
|
|
cargo
|
|
rustfmt
|
|
rust-analyzer
|
|
clippy
|
|
rustup
|
|
pkg-config
|
|
openssl
|
|
];
|
|
};
|
|
};
|
|
}
|
|
|
|
|