2023-01-19 15:28:54 +00:00
|
|
|
flake_input@{ kpcli-py
|
|
|
|
, nixgl
|
|
|
|
, rust-overlay
|
|
|
|
, neovim-nightly-overlay
|
|
|
|
, system
|
2023-02-14 17:06:39 +00:00
|
|
|
, nickel
|
2023-03-24 16:39:29 +00:00
|
|
|
, nix-boost
|
2023-04-02 06:35:11 +00:00
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2023-01-19 15:28:54 +00:00
|
|
|
kpcli-py = (final: prev: {
|
|
|
|
# use python3.9, which works because of cython somehow?
|
|
|
|
kpcli-py = final.poetry2nix.mkPoetryApplication {
|
|
|
|
projectDir = flake_input.kpcli-py;
|
|
|
|
python = final.python39;
|
|
|
|
overrides = final.poetry2nix.defaultPoetryOverrides.extend (self: super: {
|
|
|
|
# tableformatter requires setuptools
|
|
|
|
tableformatter = super.tableformatter.overridePythonAttrs (
|
|
|
|
old: {
|
2023-03-24 16:39:29 +00:00
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools self.cython_3 ];
|
|
|
|
src = old.src;
|
2023-01-19 15:28:54 +00:00
|
|
|
}
|
|
|
|
);
|
2023-03-24 16:39:29 +00:00
|
|
|
kpcli = super.kpcli.overridePythonAttrs (old: {
|
2023-04-02 06:35:11 +00:00
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools ];
|
2023-03-24 16:39:29 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
# ubersmith = super.ubersmith.overridePythonAttrs (old: {
|
|
|
|
# buildInputs = builtins.filter (x: ! builtins.elem x [ ]) ((old.buildInputs or [ ]) ++ [
|
|
|
|
# py-final.setuptools
|
|
|
|
# py-final.pip
|
|
|
|
# ]);
|
|
|
|
#
|
|
|
|
# src = final.fetchFromGitHub {
|
|
|
|
# owner = "jasonkeene";
|
|
|
|
# repo = "python-ubersmith";
|
|
|
|
# rev = "0c594e2eb41066d1fe7860e3a6f04b14c14f6e6a";
|
|
|
|
# sha256 = "sha256-Dystt7CBtjpLkgzCsAif8WkkYYeLyh7VMehAtwoDGuM=";
|
|
|
|
# };
|
|
|
|
# });
|
|
|
|
|
2023-01-19 15:28:54 +00:00
|
|
|
});
|
|
|
|
};
|
|
|
|
});
|
2023-01-06 18:07:05 +00:00
|
|
|
|
2023-04-02 06:35:11 +00:00
|
|
|
rust = (final: prev:
|
2023-01-12 18:04:56 +00:00
|
|
|
let
|
|
|
|
nightlyRustWithExts = exts: final.rust-bin.selectLatestNightlyWith (
|
|
|
|
toolchain: (toolchain.minimal.override {
|
|
|
|
extensions = exts;
|
|
|
|
})
|
|
|
|
);
|
|
|
|
# https://rust-lang.github.io/rustup/concepts/profiles.html
|
|
|
|
rust-default-components = [ "rust-docs" "rustfmt" "clippy" ];
|
|
|
|
rust-dev-components = rust-default-components ++ [ "rust-src" "rust-analyzer" "miri" ];
|
2023-04-02 06:35:11 +00:00
|
|
|
in
|
|
|
|
{
|
2023-01-12 18:04:56 +00:00
|
|
|
rust4devs = nightlyRustWithExts rust-dev-components;
|
|
|
|
rust4cargo = nightlyRustWithExts [ ];
|
|
|
|
rust4normi = nightlyRustWithExts rust-default-components;
|
2023-04-02 06:35:11 +00:00
|
|
|
});
|
2023-02-14 17:06:39 +00:00
|
|
|
|
|
|
|
nickel = (final: prev: {
|
|
|
|
inherit (flake_input.nickel.packages.${system})
|
|
|
|
lsp-nls nickel nickelWasm;
|
|
|
|
});
|
2023-04-02 06:35:11 +00:00
|
|
|
in
|
|
|
|
[
|
2023-03-24 16:39:29 +00:00
|
|
|
nix-boost.overlays.default
|
2023-01-19 15:28:54 +00:00
|
|
|
nixgl.overlays.default
|
|
|
|
rust-overlay.overlays.default
|
|
|
|
neovim-nightly-overlay.overlay
|
|
|
|
rust
|
|
|
|
kpcli-py
|
2023-02-14 17:06:39 +00:00
|
|
|
nickel
|
2022-12-30 14:10:55 +00:00
|
|
|
]
|
|
|
|
|