flake-module.nix
1 { inputs, ... }: 2 { 3 flake.overlays = { 4 default = _final: prev: { 5 zjstatus = inputs.zjstatus.packages.${prev.stdenv.hostPlatform.system}.default; 6 7 # afew: fix pkg_resources deprecation warning (PR #363 merged but not in 3.0.1) 8 afew = prev.afew.overridePythonAttrs (old: { 9 version = "3.0.2"; 10 src = prev.fetchFromGitHub { 11 owner = "afewmail"; 12 repo = "afew"; 13 rev = "23b5aeaa43572a59e95fb00732292087b091d4a1"; 14 hash = "sha256-RClWSHvyDTJjJsjLXAIAv24TE5NskXLCQ7RcKKt2330="; 15 }; 16 env.SETUPTOOLS_SCM_PRETEND_VERSION = "3.0.2"; 17 dependencies = (old.dependencies or [ ]) ++ [ 18 prev.python3Packages.notmuch2 19 ]; 20 }); 21 }; 22 }; 23 24 perSystem = 25 { system, ... }: 26 { 27 _module.args.pkgs = import inputs.nixpkgs { 28 inherit system; 29 overlays = [ 30 inputs.self.overlays.default 31 ]; 32 }; 33 }; 34 }