-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathflake.nix
33 lines (30 loc) · 1.04 KB
/
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
{
description = "Lightweight ARTIQ communication tools";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-24.05;
inputs.sipyco.url = github:m-labs/sipyco;
inputs.sipyco.inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.url = github:numtide/flake-utils;
outputs = { self, nixpkgs, sipyco, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
deps = [ pkgs.python3Packages.numpy pkgs.python3Packages.aiohttp sipyco.packages.${system}.sipyco ];
in {
packages = rec {
artiq-comtools = pkgs.python3Packages.buildPythonPackage {
pname = "artiq-comtools";
version = "1.3";
src = self;
propagatedBuildInputs = deps;
};
default = artiq-comtools;
};
devShells.default = pkgs.mkShell {
name = "artiq-comtools-dev-shell";
buildInputs = [
(pkgs.python3.withPackages(ps: deps))
];
};
}
);
}