Skip to content
Open
Show file tree
Hide file tree
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
39 changes: 28 additions & 11 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/24.05";
#nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
neontology-py.url = "github:mindwm/neontology";
neontology-py.inputs.nixpkgs.follows = "nixpkgs";
Expand All @@ -21,7 +21,18 @@
systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = { config, self', inputs', pkgs, system, ... }:
let
my_python = pkgs.python3.withPackages (ps: with ps; [
packageOverrides = self: super: {
magika = super.magika.overridePythonAttrs (old: rec {
version = "0.5.0";
src = super.fetchPypi {
pname = "magika";
inherit version;
hash = "sha256-r6C7iDCG/o3JEvweQGb4upr+LuHvmNtkwtduZGehCsc=";
};
});
};
python = pkgs.python3.override { inherit packageOverrides; };
my_python = python.withPackages (ps: with ps; [
inputs.neontology-py.packages.${system}.default
inputs.strictjson-py.packages.${system}.default
pydantic dateutil urllib3
Expand All @@ -34,6 +45,7 @@
pyyaml
openai
cloudevents deprecation
magika
]);
project = pkgs.callPackage ./package.nix {
my_python = pkgs.python3;
Expand Down