Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
677 B · 30 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031{ lib, stdenv, fetchurl }:{ version, artifactId, groupId, sha512, type ? "jar", suffix ? "", sourceProvenance ? (lib.optionals (type == "jar") [ lib.sourceTypes.binaryBytecode ])}:
let m2Path = "${builtins.replaceStrings ["."] ["/"] groupId}/${artifactId}/${version}"; m2File = "${artifactId}-${version}${suffix}.${type}"; src = fetchurl { inherit sha512; url = "mirror://maven/${m2Path}/${m2File}"; };in stdenv.mkDerivation { inherit version m2Path m2File src; pname = artifactId;
dontUnpack = true;
installPhase = '' mkdir -p $out/m2/$m2Path cp $src $out/m2/$m2Path/$m2File '';
meta.sourceProvenance = sourceProvenance;}