-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
36 lines (30 loc) · 949 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 = "Nix flake for Formie.";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }: let
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
in rec {
packages = forAllSystems (system: let
pkgs = nixpkgsFor.${system};
in {
default = pkgs.stdenv.mkDerivation {
pname = "formie";
version = "v3.2";
src = ./.;
buildInputs = with pkgs.python312Packages; [
flask
flask_sqlalchemy
passlib
argon2-cffi
];
};
});
devShells = forAllSystems (system: {
default = packages.${system}.default.overrideAttrs (finalAttrs: previousAttrs: {
nativeBuildInputs = [ nixpkgsFor.${system}.black ];
});
});
};
}