mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
ref(nix): make the flake more idiomatic
This commit is contained in:
@@ -42,11 +42,11 @@
|
||||
|
||||
mkDevShell = rust:
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = buildDeps (rust.override {
|
||||
packages = buildDeps (rust.override {
|
||||
extensions = ["rust-src"];
|
||||
});
|
||||
|
||||
RUST_BACKTRACE = 1;
|
||||
env.RUST_BACKTRACE = 1;
|
||||
};
|
||||
|
||||
mkPackage = rust:
|
||||
@@ -55,10 +55,11 @@
|
||||
rustc = rust;
|
||||
})
|
||||
.buildRustPackage {
|
||||
inherit (cargoToml.package) name version;
|
||||
pname = cargoToml.package.name;
|
||||
inherit (cargoToml.package) version;
|
||||
src = ./.;
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
nativeBuildInputs = buildDeps rust;
|
||||
buildInputs = buildDeps rust;
|
||||
dontUseCargoParallelTests = true;
|
||||
};
|
||||
in {
|
||||
|
||||
Reference in New Issue
Block a user