forked from M-Labs/nix-scripts
32 lines
986 B
Nix
32 lines
986 B
Nix
{ pkgs, asyncserial, artiq }:
|
|
let
|
|
dualPackage = (
|
|
{ name, version, src, pythonOptions, condaOptions }:
|
|
{
|
|
"${name}" = pkgs.python3Packages.buildPythonPackage ({
|
|
inherit version;
|
|
name = "${name}-${version}";
|
|
inherit src;
|
|
} // pythonOptions);
|
|
"conda-${name}" = import ./conda-build.nix { inherit pkgs; } {
|
|
name = "conda-korad_ka3005p";
|
|
src = import ./conda-fake-source.nix { inherit pkgs; } ({
|
|
inherit name version src;
|
|
} // condaOptions);
|
|
};
|
|
}
|
|
);
|
|
in
|
|
(dualPackage {
|
|
name = "korad_ka3005p";
|
|
version = "1.0";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "m-labs";
|
|
repo = "korad_ka3005p";
|
|
rev = "e0adec6c577d7d1b832a2b1bf20e89ac393ca27e";
|
|
sha256 = "18092zgjh63qrg6lg9mzsbr2yri7k7wb97mip5xq3zrcabmmpbk3";
|
|
};
|
|
pythonOptions = { buildInputs = [ asyncserial artiq ]; };
|
|
condaOptions = { dependencies = [ "asyncserial" ]; };
|
|
})
|