Compare commits

...

2 commits

Author SHA1 Message Date
63f888db9b that was fucking stupid 2024-11-29 15:14:05 +01:00
bcc4f8eb7d created overlay 2024-11-29 14:57:51 +01:00
5 changed files with 39 additions and 1 deletions

View file

@ -43,6 +43,7 @@
nixpkgs.lib.nixosSystem {
system = arch;
modules = [
(import ./overlays)
./nixosModules
./hosts/${host}
./hosts/base

View file

@ -28,7 +28,7 @@ in
python3
poetry
pre-commit
uv
uv-bin
]
++ lib.optionals cfg.install-additional [
python313

6
overlays/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
nixpkgs.overlays = [
(import ./uv)
];
}

3
overlays/uv/default.nix Normal file
View file

@ -0,0 +1,3 @@
(final: prev: {
uv-bin = prev.callPackage ./package.nix { };
})

28
overlays/uv/package.nix Normal file
View file

@ -0,0 +1,28 @@
{
stdenv,
versionCheckHook,
lib,
}:
stdenv.mkDerivation rec {
pname = "uv-bin";
version = "0.5.5";
src = fetchTarball {
url = "https://github.com/astral-sh/uv/releases/download/${version}/uv-x86_64-unknown-linux-gnu.tar.gz";
sha256 = "";
};
nativeCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
meta = {
description = "Extremely fast Python package installer and resolver, written in Rust";
homepage = "https://github.com/astral-sh/uv";
license = with lib.licenses; [
asl20
mit
];
};
}