added sqlx cli to flake
This commit is contained in:
parent
0d0cf63c62
commit
7de920f85a
26
flake.nix
26
flake.nix
@ -16,36 +16,33 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Flake outputs that other flakes can use
|
# Flake outputs that other flakes can use
|
||||||
outputs =
|
outputs = {
|
||||||
{ self
|
self,
|
||||||
, flake-schemas
|
flake-schemas,
|
||||||
, nixpkgs
|
nixpkgs,
|
||||||
, rust-overlay
|
rust-overlay,
|
||||||
,
|
}: let
|
||||||
}:
|
|
||||||
let
|
|
||||||
# Nixpkgs overlays
|
# Nixpkgs overlays
|
||||||
overlays = [
|
overlays = [
|
||||||
rust-overlay.overlays.default
|
rust-overlay.overlays.default
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
rustToolchain = final.rust-bin.stable.latest.default.override { extensions = [ "rust-src" ]; };
|
rustToolchain = final.rust-bin.stable.latest.default.override {extensions = ["rust-src"];};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
# Helpers for producing system-specific outputs
|
# Helpers for producing system-specific outputs
|
||||||
supportedSystems = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" "aarch64-linux" ];
|
supportedSystems = ["x86_64-linux" "aarch64-darwin" "x86_64-darwin" "aarch64-linux"];
|
||||||
forEachSupportedSystem = f:
|
forEachSupportedSystem = f:
|
||||||
nixpkgs.lib.genAttrs supportedSystems (system:
|
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||||
f {
|
f {
|
||||||
pkgs = import nixpkgs { inherit overlays system; };
|
pkgs = import nixpkgs {inherit overlays system;};
|
||||||
});
|
});
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
# Schemas tell Nix about the structure of your flake's outputs
|
# Schemas tell Nix about the structure of your flake's outputs
|
||||||
schemas = flake-schemas.schemas;
|
schemas = flake-schemas.schemas;
|
||||||
|
|
||||||
# Development environments
|
# Development environments
|
||||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
devShells = forEachSupportedSystem ({pkgs}: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
# Pinned packages available in the environment
|
# Pinned packages available in the environment
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
@ -58,6 +55,7 @@
|
|||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
openssl
|
openssl
|
||||||
deno
|
deno
|
||||||
|
sqlx-cli
|
||||||
];
|
];
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
|
Loading…
Reference in New Issue
Block a user