mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 19:28:00 +01:00
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{
|
|
description = "Terminal session recorder";
|
|
|
|
inputs = {
|
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
|
|
rust-overlay.url = github:oxalica/rust-overlay;
|
|
flake-parts.url = github:hercules-ci/flake-parts;
|
|
};
|
|
|
|
outputs = inputs @ {
|
|
flake-parts,
|
|
rust-overlay,
|
|
...
|
|
}:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
|
|
perSystem = {
|
|
config,
|
|
self',
|
|
inputs',
|
|
pkgs,
|
|
system,
|
|
...
|
|
}: let
|
|
packageToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package;
|
|
in {
|
|
_module.args = {
|
|
pkgs = import inputs.nixpkgs {
|
|
inherit system;
|
|
overlays = [(import rust-overlay)];
|
|
};
|
|
};
|
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
devShells = pkgs.callPackages ./shell.nix {inherit packageToml self';};
|
|
|
|
packages.default = pkgs.callPackage ./default.nix {inherit packageToml;};
|
|
};
|
|
};
|
|
}
|