move `follows` to top-level inputs

nix evaluates the  from the root flake, meaning that nested follows don't work well when this flake is imported in another flake
Brad Bondurant 2022-12-21 09:37:33 -05:00
parent 876de24ed2
commit 4392ace43a
2 changed files with 15 additions and 7 deletions

View File

@ -87,11 +87,9 @@
], ],
"flake8-artiq": "flake8-artiq", "flake8-artiq": "flake8-artiq",
"nixpkgs": [ "nixpkgs": [
"artiq",
"nixpkgs" "nixpkgs"
], ],
"sipyco": [ "sipyco": [
"artiq",
"sipyco" "sipyco"
], ],
"trap-dac-utils": "trap-dac-utils" "trap-dac-utils": "trap-dac-utils"
@ -185,7 +183,15 @@
"root": { "root": {
"inputs": { "inputs": {
"artiq": "artiq", "artiq": "artiq",
"daxpkgs": "daxpkgs" "daxpkgs": "daxpkgs",
"nixpkgs": [
"artiq",
"nixpkgs"
],
"sipyco": [
"artiq",
"sipyco"
]
} }
}, },
"sipyco": { "sipyco": {

View File

@ -2,19 +2,21 @@
description = "Additional packages for ARTIQ"; description = "Additional packages for ARTIQ";
inputs.artiq.url = git+https://github.com/m-labs/artiq.git; inputs.artiq.url = git+https://github.com/m-labs/artiq.git;
inputs.nixpkgs.follows = "artiq/nixpkgs";
inputs.sipyco.follows = "artiq/sipyco";
inputs.daxpkgs = { inputs.daxpkgs = {
url = git+https://gitlab.com/duke-artiq/dax.git; url = git+https://gitlab.com/duke-artiq/dax.git;
inputs = { inputs = {
artiqpkgs.follows = "artiq"; artiqpkgs.follows = "artiq";
nixpkgs.follows = "artiq/nixpkgs"; nixpkgs.follows = "nixpkgs";
sipyco.follows = "artiq/sipyco"; sipyco.follows = "sipyco";
}; };
}; };
outputs = { self, artiq, daxpkgs }: outputs = { self, artiq, daxpkgs, nixpkgs, sipyco }:
let let
pkgs = import artiq.inputs.nixpkgs { system = "x86_64-linux"; }; pkgs = import nixpkgs { system = "x86_64-linux"; };
msys2 = import ./msys2 { inherit pkgs; }; msys2 = import ./msys2 { inherit pkgs; };
condaDeps = with pkgs; [ zlib xorg.libSM xorg.libICE xorg.libX11 xorg.libXau xorg.libXi xorg.libXrender libselinux libGL ]; condaDeps = with pkgs; [ zlib xorg.libSM xorg.libICE xorg.libX11 xorg.libXau xorg.libXi xorg.libXrender libselinux libGL ];