Files
mudmouth/flake.nix
T
pleb d7527a9319
CI / macos-latest (push) Has been cancelled
CI / ubuntu-latest (push) Has been cancelled
CI / windows-latest (push) Has been cancelled
Add nix flake
2026-07-21 10:53:33 -07:00

69 lines
1.6 KiB
Nix

{
description = "Mudmouth, a classic-MUD-inspired EverQuest log reader";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{ self, nixpkgs }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
packages = forAllSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
default = pkgs.rustPlatform.buildRustPackage {
pname = "mudmouth";
version = "0.0.2";
src = self;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [ pkgs.alsa-lib ];
meta = with pkgs.lib; {
description = "A classic-MUD-inspired EverQuest log reader with Kokoro voices";
homepage = "https://github.com/pleb/mudmouth";
license = licenses.mit;
mainProgram = "mudmouth";
platforms = platforms.linux;
};
};
}
);
apps = forAllSystems (system: {
default = {
type = "app";
program = "${self.packages.${system}.default}/bin/mudmouth";
};
});
devShells = forAllSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
default = pkgs.mkShell {
packages = with pkgs; [
cargo
rustc
rustfmt
clippy
pkg-config
alsa-lib
];
};
}
);
};
}