Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,21 @@
let
# due to the nixpkgs that we use in this flake being outdated, uv is also heavily outdated
# we can just use the binary release of uv provided by uv2nix
uvOverlay = final: prev: {
uv = uv2nix.packages.${final.system}.uv-bin;
uvOverlay = final: prev:
let
uv-bin = uv2nix.packages.${final.system}.uv-bin;
in {
# haskell-backend uses kontrol for profiling and uses a nix develop shell with the `--ignore-environment` flag set
# uv has an optional runtime dependency on git, which is not included by default in the uv derivation
uv = final.symlinkJoin {
name = "uv";
paths = [ uv-bin ];
buildInputs = [ uv-bin final.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/uv \
--prefix PATH : ${final.git}/bin
'';
};
};
kontrolOverlay = final: prev:
let
Expand Down