urukul: also build release version

This commit is contained in:
Sebastien Bourdeauducq 2019-11-14 16:34:25 +08:00
parent 5797648204
commit 26f1418492
1 changed files with 24 additions and 11 deletions

View File

@ -2,11 +2,9 @@
let let
migen = (pkgs.callPackage ../artiq-fast/pkgs/python-deps.nix {}).migen; migen = (pkgs.callPackage ../artiq-fast/pkgs/python-deps.nix {}).migen;
ise = import ./ise.nix { inherit pkgs; }; ise = import ./ise.nix { inherit pkgs; };
in buildUrukulCpld = {version, src}: pkgs.stdenv.mkDerivation {
{ name = "urukul-cpld-${version}";
urukul-cpld = pkgs.stdenv.mkDerivation { inherit src;
name = "urukul-cpld";
src = <urukulSrc>;
buildInputs = [(pkgs.python3.withPackages(ps: [migen]))] ++ (builtins.attrValues ise); buildInputs = [(pkgs.python3.withPackages(ps: [migen]))] ++ (builtins.attrValues ise);
phases = ["buildPhase" "installPhase"]; phases = ["buildPhase" "installPhase"];
buildPhase = "python $src/urukul_impl.py"; buildPhase = "python $src/urukul_impl.py";
@ -17,4 +15,19 @@ in
echo file binary-dist $out/urukul.jed >> $out/nix-support/hydra-build-products echo file binary-dist $out/urukul.jed >> $out/nix-support/hydra-build-products
''; '';
}; };
in
{
urukul-cpld-master = buildUrukulCpld {
version = "master";
src = <urukulSrc>;
};
urukul-cpld-release = buildUrukulCpld rec {
version = "1.3.1";
src = pkgs.fetchFromGitHub {
owner = "quartiq";
repo = "urukul";
rev = "v${version}";
sha256 = "1nvarspqbf9f7b27j34jkkh4mj6rwrlmccmfpz5nnzk3h2j6zbqc";
};
};
} }