Skip to content

Commit

Permalink
Merge pull request #1651 from RobinJadoul/update-flake
Browse files Browse the repository at this point in the history
build: bump nix flake dependencies and make poetry2nix work again
  • Loading branch information
lucc authored May 2, 2024
2 parents c1137ea + baa00bd commit 42a686c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 20 deletions.
69 changes: 53 additions & 16 deletions flake.lock

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

7 changes: 3 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
description = "Application packaged using poetry2nix";
description = "alot: Terminal-based Mail User Agent";

inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
Expand All @@ -12,9 +12,8 @@
flake-utils.lib.eachDefaultSystem (system:
let
# see https://github.com/nix-community/poetry2nix/tree/master#api for more functions and examples.
inherit (poetry2nix.legacyPackages.${system}) mkPoetryApplication;
pkgs = nixpkgs.legacyPackages.${system};

inherit (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }) mkPoetryApplication overrides;
in
{
packages = {
Expand All @@ -28,7 +27,7 @@
pkgs.gpgme.dev
pkgs.python3.pkgs.cffi
];
overrides = poetry2nix.legacyPackages.${system}.overrides.withDefaults (final: prev: {
overrides = overrides.withDefaults (final: prev: {
gpg = prev.gpgme;
notmuch2 = pkgs.python3.pkgs.notmuch2;
});
Expand Down

0 comments on commit 42a686c

Please sign in to comment.