-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
31 lines (28 loc) · 891 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
{
description = "A symlink-based dotfile manager with support for multiple hosts";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
};
outputs = { self, nixpkgs }:
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
deps = [
pkgs.python3
pkgs.python3Packages.pytest
pkgs.python3Packages.pytest-mock
pkgs.python3Packages.pytest-isort
pkgs.python3Packages.pytest-black
pkgs.python3Packages.pytest-mypy
pkgs.python3Packages.ipdb
];
in {
devShell.x86_64-linux = pkgs.mkShell {
buildInputs = deps;
};
packages.x86_64-linux.dotm = pkgs.python3Packages.buildPythonPackage rec {
name = "dotm";
src = ./.;
propagatedBuildInputs = deps;
};
packages.x86_64-linux.default = self.packages.x86_64-linux.dotm;
};
}