We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe9f1b commit d523ad0Copy full SHA for d523ad0
rust/.envrc
@@ -1 +1,4 @@
1
-use flake .
+if [ -z "$NIX_DEVELOP_ONCE" ]; then
2
+ export NIX_DEVELOP_ONCE=1
3
+ nix develop
4
+fi
rust/flake.nix
@@ -14,6 +14,12 @@
14
flake-utils.lib.eachDefaultSystem (
15
system: let
16
pkgs = nixpkgs.legacyPackages.${system};
17
+ mkRustPkg = pkg:
18
+ pkgs.rustPlatform.buildRustPackage {
19
+ name = pkg;
20
+ src = pkgs.nix-gitignore.gitignoreSource [] ./${pkg};
21
+ cargoLock.lockFile = ./${pkg}/Cargo.lock;
22
+ };
23
in {
24
devShells.default = pkgs.mkShell {
25
packages = with pkgs; [
@@ -27,6 +33,10 @@
27
33
rustfmt
28
34
];
29
35
};
36
+ packages = {
37
+ rustell = mkRustPkg "rustell";
38
+ default = self.packages.${system}.rustell;
39
30
40
}
31
41
);
32
42
0 commit comments