Files
fsfe-website/shell.nix
Darragh Elliott c79f5ef415
All checks were successful
continuous-integration/drone/pr Build is passing
feat: use uv
its faster, and has some nicer features
2025-06-25 18:58:17 +01:00

61 lines
1.3 KiB
Nix
Executable File

{
pkgs ? import <nixpkgs> {
config = { };
overlays = [ ];
},
}:
let
treefmt-nixSrc = builtins.fetchTarball "https://github.com/numtide/treefmt-nix/archive/refs/heads/master.tar.gz";
treefmt-nix = import treefmt-nixSrc;
in
(pkgs.buildFHSEnv {
name = "simple-env";
# Installed for host pc only
targetPkgs =
pkgs:
(with pkgs; [
# For getting python deps
uv
# needed by lxml
libxslt
libxml2
# For less compilation
lessc
# Needed for git clean in full rebuilds
git
# Needed for compiling minifiers
libffi
go
# Formatter
(treefmt-nix.mkWrapper pkgs {
# Used to find the project root
projectRootFile = "shell.nix";
enableDefaultExcludes = true;
programs = {
ruff-check.enable = true;
ruff-format.enable = true;
nixfmt.enable = true;
};
settings = {
global = {
on-unmatched = "debug";
excludes = [
".nltk_data"
".venv"
];
};
};
})
# Packages for git hooks
mediainfo
perl
file
]);
# Installed for every architecture: only install the lib outputs
multiPkgs =
pkgs:
(with pkgs; [
]);
# runScript = '''';
}).env