Skip to content

Commit

Permalink
Add a nix derivation to build alot with setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed Jul 31, 2024
1 parent 6dedfed commit bdb2541
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,21 @@
in
{
packages = {
alot = mkPoetryApplication (defaultArgs // {
alot-setuptools = pkgs.python3Packages.buildPythonApplication {
name = "alot";
version = "dev";
src = self;
dependencies = with pkgs.python3Packages; [
configobj
gpgme
notmuch2
python-magic
twisted
urwid
urwidtrees
];
};
alot-poetry = mkPoetryApplication (defaultArgs // {
nativeBuildInputs = [
pkgs.python3.pkgs.cffi
];
Expand All @@ -50,7 +64,7 @@
pkgs.gnumake
];
} ''make -C $src/docs html man BUILDDIR=$out'';
default = self.packages.${system}.alot;
default = self.packages.${system}.alot-poetry;
};
});
}

0 comments on commit bdb2541

Please sign in to comment.