Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, fetchurl, rust, callPackage, version, hashes }: 2 3let 4 platform = rust.toRustTarget stdenv.hostPlatform; 5 6 src = fetchurl { 7 url = "https://static.rust-lang.org/dist/rust-${version}-${platform}.tar.gz"; 8 sha256 = hashes.${platform} or (throw "missing bootstrap url for platform ${platform}"); 9 }; 10 11in callPackage ./binary.nix 12 { inherit version src platform; 13 versionType = "bootstrap"; 14 }