-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
42 lines (38 loc) · 931 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
37
38
39
40
41
42
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs,
...
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
in {
packages."${system}" = {
rubics-cube = pkgs.python3Packages.buildPythonPackage rec {
pname = "rubic-cube";
version = "0.1.0";
src = ./.;
# do not run tests
doCheck = false;
# specific to buildPythonPackage, see its reference
pyproject = true;
build-system = with pkgs.python3Packages; [
setuptools
setuptools-scm # wtf is this
];
propagatedBuildInputs = with pkgs.python3Packages; [
numpy
matplotlib
];
pythonImportsCheck = ["rubics_cube"];
};
default = self.packages."${system}".rubics-cube;
};
};
}