Skip to content

Commit 1aeba75

Browse files
committed
rename var + update input
1 parent 2a5f346 commit 1aeba75

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
pkgs = nixpkgs.legacyPackages.${system};
1818
unstable-pkgs = unstable.legacyPackages.${system};
1919
rust-pkgs = import ./nix/rust-toolchain.nix { inherit fenix system; };
20-
in
21-
rec {
22-
devShells.default = pkgs.mkShell {
20+
21+
common = {
2322
buildInputs = with pkgs; [
2423
gnumake
2524
bun
@@ -37,13 +36,16 @@
3736
export PRISMA_FMT_BINARY="${unstable-pkgs.prisma-engines}/bin/prisma-fmt";
3837
'';
3938
};
39+
in
40+
{
41+
devShells.default = pkgs.mkShell common;
4042
devShells.scraper = pkgs.mkShell {
41-
buildInputs = devShells.default.buildInputs ++ (with pkgs; [
43+
buildInputs = common.buildInputs ++ (with pkgs; [
4244
pkg-config
4345
openssl
4446
rust-pkgs
4547
]);
46-
shellHook = devShells.default.shellHook;
48+
shellHook = common.shellHook;
4749
};
4850
});
4951
}

0 commit comments

Comments
 (0)