nix with marimo
#4594
dmadisetti
started this conversation in
General
Replies: 2 comments 1 reply
|
From @schlich {
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }: {
devShells.x86_64-linux.default = let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_22
pnpm_9
python3
hatch
];
};
};
} |
1 reply
|
I've found a very helpful Nix function to seemingly avoid most all dynamic linking issues e.g. with Pixi and uv. If you're trying to set up a marimo dev environment you can try: {
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
fhs = pkgs.buildFHSEnv {
name = "pixi-env";
targetPkgs = _: with pkgs; [ pixi gcc uv ];
};
in
{
devShell = fhs.env;
}
);
}All thanks to this EXTREMELY helpful article which gives tips specific to both Pixi and uv: How to Run Non-Nix Executables Edit: that doesnt seem to be the article i was thinking of, but I'll share if i come across it again. Leaving the article since it's still got helpful tips! Edit2: Found it! So good! https://wiki.nixos.org/wiki/Python |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
marimo is packaged on nixpkgs
But maybe you have a flake or two you'd like to share?
Just a general discussion thread for marimo + nix
All reactions