1
0
Fork 0
nix-scripts/artiq-fast/conda-windows/redistribute.nix

14 lines
367 B
Nix
Raw Normal View History

2020-06-20 13:57:06 +08:00
{ pkgs, name, filename, baseurl, sha256 }:
let
download = pkgs.fetchurl {
url = "${baseurl}${filename}";
inherit sha256;
};
in
pkgs.runCommand "conda-windows-${name}" { } ''
mkdir -p $out/win-64 $out/nix-support
ln -s ${download} $out/win-64/${filename}
echo file conda $out/win-64/${filename} >> $out/nix-support/hydra-build-products
''