beancount-cde-importer/flake.nix

34 lines
877 B
Nix
Raw Normal View History

2022-01-31 17:21:23 +01:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
flake-utils.url = "github:numtide/flake-utils";
poetry2nix.url = "github:nix-community/poetry2nix";
};
outputs = { self, nixpkgs, flake-utils, poetry2nix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ poetry2nix.overlay ];
};
poetryEnv = pkgs.poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in
{
2022-02-01 23:17:34 +01:00
packages.beancount-cde-importer = pkgs.poetry2nix.mkPoetryApplication {
projectDir = ./.;
};
defaultPackage = self.packages.${system}.beancount-cde-importer;
2022-01-31 17:21:23 +01:00
devShell = pkgs.mkShell {
buildInputs = [
poetryEnv
pkgs.poetry
];
};
});
}