Files
asciinema/flake.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

2024-02-14 21:54:21 +01:00
{
description = "Terminal session recorder";
inputs = {
2025-05-05 21:20:22 +02:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-parts.url = "github:hercules-ci/flake-parts";
2024-02-14 21:54:21 +01:00
};
2025-05-05 21:36:33 +02:00
outputs =
inputs@{
flake-parts,
rust-overlay,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
perSystem =
{
self',
pkgs,
system,
...
}:
let
packageToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package;
in
{
2025-08-14 13:46:56 +02:00
formatter = pkgs.nixfmt-tree;
2024-06-09 13:18:19 +02:00
2025-05-05 21:36:33 +02:00
_module.args = {
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
};
};
2024-06-09 00:43:05 +02:00
2025-05-05 21:36:33 +02:00
devShells = pkgs.callPackages ./shell.nix { inherit pkgs packageToml self'; };
2024-06-09 02:34:30 +02:00
2025-05-05 21:36:33 +02:00
packages.default = pkgs.callPackage ./default.nix {
inherit packageToml;
rust = pkgs.rust-bin.stable.latest.minimal;
};
2024-06-16 16:00:22 +02:00
};
2024-06-09 00:43:05 +02:00
};
2024-02-14 21:54:21 +01:00
}