Files
asciinema/flake.nix

40 lines
1000 B
Nix
Raw Normal View History

2024-02-14 21:54:21 +01:00
{
description = "Terminal session recorder";
inputs = {
2024-06-09 00:43:05 +02:00
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
2024-04-20 14:02:53 +02:00
rust-overlay.url = github:oxalica/rust-overlay;
2024-06-09 00:43:05 +02:00
flake-parts.url = github:hercules-ci/flake-parts;
2024-02-14 21:54:21 +01:00
};
2024-06-09 00:43:05 +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
2024-06-09 00:47:37 +02:00
packageToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package;
2024-06-09 00:43:05 +02:00
in {
_module.args = {
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [(import rust-overlay)];
};
};
2024-06-09 00:43:05 +02:00
formatter = pkgs.alejandra;
2024-04-20 14:02:53 +02:00
2024-06-09 02:42:08 +02:00
devShells = pkgs.callPackages ./shell.nix {inherit packageToml self';};
2024-06-09 02:34:30 +02:00
packages.default = pkgs.callPackage ./default.nix {inherit packageToml;};
2024-06-09 00:43:05 +02:00
};
};
2024-02-14 21:54:21 +01:00
}