Skip to content

Commit 687ebf4

Browse files
committed
evcxr: small improvements
- use finalAttrs - remove `with lib;` - sort deps
1 parent b6c5886 commit 687ebf4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pkgs/by-name/ev/evcxr/package.nix

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
2-
cargo,
2+
lib,
3+
stdenv,
4+
rustPlatform,
35
fetchFromGitHub,
46
makeWrapper,
57
pkg-config,
6-
rustPlatform,
7-
lib,
8-
stdenv,
8+
cmake,
9+
libiconv,
10+
cargo,
911
gcc,
1012
mold,
1113
rustc,
12-
cmake,
13-
libiconv,
1414
nix-update-script,
1515
}:
1616

17-
rustPlatform.buildRustPackage rec {
17+
rustPlatform.buildRustPackage (finalAttrs: {
1818
pname = "evcxr";
1919
version = "0.19.0";
2020

2121
src = fetchFromGitHub {
2222
owner = "google";
2323
repo = "evcxr";
24-
rev = "v${version}";
24+
rev = "v${finalAttrs.version}";
2525
sha256 = "sha256-8PjZFWUH76QrA8EI9Cx0sBCzocvSmnp84VD7Nv9QMc8=";
2626
};
2727

@@ -85,14 +85,14 @@ rustPlatform.buildRustPackage rec {
8585

8686
passthru.updateScript = nix-update-script { };
8787

88-
meta = with lib; {
88+
meta = {
8989
description = "Evaluation context for Rust";
9090
homepage = "https://github.com/google/evcxr";
91-
license = licenses.asl20;
92-
maintainers = with maintainers; [
91+
license = lib.licenses.asl20;
92+
maintainers = with lib.maintainers; [
9393
protoben
9494
ma27
9595
];
9696
mainProgram = "evcxr";
9797
};
98-
}
98+
})

0 commit comments

Comments
 (0)