Compare commits

..

6 Commits

Author SHA1 Message Date
c2ff98ce55 Fix derivation name
All checks were successful
build / build (push) Successful in 1m54s
2024-11-30 01:43:13 +01:00
e36fb131be Fix version jank
All checks were successful
build / build (push) Successful in 1m23s
2024-11-30 01:36:05 +01:00
d7ab746344 Remove version from derivation
All checks were successful
build / build (push) Successful in 56s
2024-11-28 23:33:31 +01:00
72c2a27e5a Improve package
All checks were successful
build / build (push) Successful in 1m22s
2024-11-28 23:23:52 +01:00
0c723151cb Add default overlay
All checks were successful
build / build (push) Successful in 1m0s
2024-11-28 22:26:44 +01:00
263d0423a3 Merge branch 'poetry2uv'
All checks were successful
build / build (push) Successful in 1m10s
2024-11-28 21:56:14 +01:00

View File

@@ -86,7 +86,6 @@
dontConfigure = true;
dontInstall = true;
buildPhase = ''
mypy --version
mkdir $out
mypy --strict huecli --junit-xml $out/junit.xml
'';
@@ -122,21 +121,32 @@
let
pkgs = nixpkgs.legacyPackages.${system};
pythonSet = pythonSets.${system};
venv = pythonSet.mkVirtualEnv "huecli-env" workspace.deps.default;
in
{
default = (pythonSet.mkVirtualEnv "huecli" workspace.deps.default).overrideAttrs (
_final: prev: {
nativeBuildInputs = prev.nativeBuildInputs ++ [ pkgs.installShellFiles ];
default = pkgs.stdenv.mkDerivation {
pname = "huecli";
version = pythonSet.huecli.version;
dontConfigure = true;
dontUnpack = true;
dontBuild = true;
buildInputs = [ venv ];
nativeBuildInputs = [ pkgs.installShellFiles ];
postInstall = ''
mkdir -p $out/bin
ln -s ${venv}/bin/huecli $out/bin/huecli
installShellCompletion --cmd huecli \
--bash <($out/bin/huecli --show-completion bash) \
--zsh <($out/bin/huecli --show-completion zsh) \
--fish <($out/bin/huecli --show-completion fish)
'';
};
}
);
}
);
overlays.default = final: prev: {
huecli = self.packages.${prev.system}.default;
};
# Use an editable Python set for development.
devShells = forAllSystems (