feat: several changes (add packages, fix syntax, ...)
This commit is contained in:
83
dev-flakes/flake.lock
generated
Normal file
83
dev-flakes/flake.lock
generated
Normal file
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1745391562,
|
||||
"narHash": "sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs",
|
||||
"spacetime": "spacetime"
|
||||
}
|
||||
},
|
||||
"spacetime": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1747153592,
|
||||
"narHash": "sha256-LdqcDLzGzhP6JGdMPw9e/kfLrSYNc6ILZDSze+tEeMk=",
|
||||
"owner": "mx42",
|
||||
"repo": "nix_spacetimedb",
|
||||
"rev": "205f52c60ab71daa92d1f4a667b0f9d915eda513",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "mx42",
|
||||
"ref": "main",
|
||||
"repo": "nix_spacetimedb",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
90
dev-flakes/flake.nix
Normal file
90
dev-flakes/flake.nix
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
description = "Python dev shell";
|
||||
|
||||
# Flake inputs
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
spacetime = {
|
||||
url = "github:mx42/nix_spacetimedb/main";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
# Flake outputs
|
||||
outputs =
|
||||
{
|
||||
nixpkgs,
|
||||
spacetime,
|
||||
...
|
||||
}:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
spacetimedb = import spacetime { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
devShells.${system} = {
|
||||
python = pkgs.mkShell {
|
||||
packages = (
|
||||
with pkgs;
|
||||
[
|
||||
python313
|
||||
onefetch
|
||||
uv
|
||||
ruff
|
||||
]
|
||||
);
|
||||
shellHook = ''
|
||||
onefetch
|
||||
uv sync
|
||||
'';
|
||||
};
|
||||
scala = pkgs.mkShell {
|
||||
packages = (
|
||||
with pkgs;
|
||||
[
|
||||
sbt
|
||||
coursier
|
||||
onefetch
|
||||
openjdk
|
||||
]
|
||||
);
|
||||
shellHook = ''
|
||||
onefetch
|
||||
'';
|
||||
};
|
||||
docker = pkgs.mkShell {
|
||||
packages = (
|
||||
with pkgs;
|
||||
[
|
||||
podman
|
||||
podman-compose
|
||||
]
|
||||
);
|
||||
};
|
||||
rust = pkgs.mkShell {
|
||||
packages = (
|
||||
with pkgs;
|
||||
[
|
||||
rustc
|
||||
rust-analyzer
|
||||
cargo
|
||||
lld
|
||||
pkg-config
|
||||
openssl
|
||||
onefetch
|
||||
]
|
||||
);
|
||||
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
|
||||
shellHook = ''
|
||||
onefetch
|
||||
'';
|
||||
};
|
||||
spacetime = pkgs.mkShell {
|
||||
packages = [
|
||||
spacetimedb
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user