-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
28 lines (26 loc) · 875 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
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
description = "A print interface for the iFSR at TU Dresden";
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (system: {
default = pkgs.${system}.python311Packages.callPackage ./default.nix { };
});
hydraJobs = forAllSystems (system: {
default = self.packages.${system}.default;
});
nixosModules.default = import ./module.nix;
devShells = forAllSystems (system: {
default = pkgs.${system}.mkShellNoCC {
packages = with pkgs.${system}; [
self.packages."x86_64-linux".default
];
};
});
};
}