-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathflake.nix
36 lines (32 loc) · 998 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
description = "Application packaged using poetry2nix";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.poetry2nix.url = "github:nix-community/poetry2nix";
outputs = { self, nixpkgs, flake-utils, flake-pkgs, poetry2nix }:
{
# Nixpkgs overlay providing the application
overlay = nixpkgs.src.composeManyExtensions [
poetry2nix.overlay
(final: prev: {
# The application
BlackMarlinExec = prev.poetry2nix.mkPoetryApplication {
projectDir = ./.;
};
})
];
} // (flake-utils.src.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlay ];
};
in
{
apps = {
BlackMarlinExec = pkgs.BlackMarlinExec;
};
defaultApp = pkgs.BlackMarlinExec;
packages = { BlackMarlinExec = pkgs.BlackMarlinExec; };
}));
}