mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 19:28:00 +01:00
ref(nix): move shell to shell.nix
This commit is contained in:
24
shell.nix
Normal file
24
shell.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
self',
|
||||
packageToml,
|
||||
rust-bin,
|
||||
mkShell,
|
||||
}: let
|
||||
msrv = packageToml.rust-version;
|
||||
|
||||
mkDevShell = rust:
|
||||
mkShell {
|
||||
inputsFrom = [
|
||||
(self'.packages.default.override {
|
||||
rust = rust.override {
|
||||
extensions = ["rust-src"];
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
env.RUST_BACKTRACE = 1;
|
||||
};
|
||||
in {
|
||||
default = mkDevShell rust-bin.stable.latest.default;
|
||||
msrv = mkDevShell rust-bin.stable.${msrv}.default;
|
||||
}
|
||||
Reference in New Issue
Block a user