commit
77c2221e14
@ -1,9 +1,10 @@ |
||||
{ linkFarmFromDrvs, fetchurl }: |
||||
{ name, nugetDeps }: |
||||
linkFarmFromDrvs "${name}-nuget-deps" (nugetDeps { |
||||
fetchNuGet = { pname, version, sha256 }: fetchurl { |
||||
linkFarmFromDrvs "${name}-nuget-deps" (nugetDeps { |
||||
fetchNuGet = { pname, version, sha256 |
||||
, url ? "https://www.nuget.org/api/v2/package/${pname}/${version}" }: |
||||
fetchurl { |
||||
name = "${pname}-${version}.nupkg"; |
||||
url = "https://www.nuget.org/api/v2/package/${pname}/${version}"; |
||||
inherit sha256; |
||||
inherit url sha256; |
||||
}; |
||||
}) |
||||
}) |
||||
|
@ -0,0 +1,36 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, poetry-core |
||||
, click |
||||
, six |
||||
, pytestCheckHook |
||||
, jsonschema |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "archspec"; |
||||
version = "0.1.4"; |
||||
format = "pyproject"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = pname; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
fetchSubmodules = true; |
||||
sha256 = "sha256-ScigEpYNArveqi5tlqiA7LwsVs2RkjT+GChxhSy/ndw="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ poetry-core ]; |
||||
propagatedBuildInputs = [ click six ]; |
||||
checkInputs = [ pytestCheckHook jsonschema ]; |
||||
|
||||
pythonImportsCheck = [ "archspec" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "A library for detecting, labeling, and reasoning about microarchitectures"; |
||||
homepage = "https://archspec.readthedocs.io/en/latest/"; |
||||
license = with licenses; [ mit asl20 ]; |
||||
maintainers = with maintainers; [ atila ]; |
||||
}; |
||||
} |
@ -0,0 +1,39 @@ |
||||
{ lib |
||||
, fetchFromGitHub |
||||
, buildPythonPackage |
||||
, six |
||||
, archspec |
||||
, pytestCheckHook |
||||
, pytest-xdist |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "hpccm"; |
||||
version = "22.5.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "NVIDIA"; |
||||
repo = "hpc-container-maker"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-zR5+X9BKaUvLPQ05FnfU817esgxVqP8n+wfdWy20BN4="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ six archspec ]; |
||||
checkInputs = [ pytestCheckHook pytest-xdist ]; |
||||
|
||||
disabledTests = [ |
||||
# tests require git |
||||
"test_commit" |
||||
"test_tag" |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "hpccm" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "HPC Container Maker"; |
||||
homepage = "https://github.com/NVIDIA/hpc-container-maker"; |
||||
license = licenses.asl20; |
||||
platforms = platforms.x86; |
||||
maintainers = with maintainers; [ atila ]; |
||||
}; |
||||
} |
@ -1,11 +0,0 @@ |
||||
diff --git a/src/hydra-eval-jobs/Makefile.am b/src/hydra-eval-jobs/Makefile.am
|
||||
index 7a4e9c91..90742a30 100644
|
||||
--- a/src/hydra-eval-jobs/Makefile.am
|
||||
+++ b/src/hydra-eval-jobs/Makefile.am
|
||||
@@ -1,5 +1,5 @@
|
||||
bin_PROGRAMS = hydra-eval-jobs
|
||||
|
||||
hydra_eval_jobs_SOURCES = hydra-eval-jobs.cc
|
||||
-hydra_eval_jobs_LDADD = $(NIX_LIBS)
|
||||
+hydra_eval_jobs_LDADD = $(NIX_LIBS) -lnixcmd
|
||||
hydra_eval_jobs_CXXFLAGS = $(NIX_CFLAGS) -I ../libhydra
|
@ -1,74 +0,0 @@ |
||||
#!/usr/bin/env nix-shell |
||||
#!nix-shell -I nixpkgs=../../../.. -i bash -p dotnet-sdk_6 jq xmlstarlet curl |
||||
set -euo pipefail |
||||
|
||||
cat << EOL |
||||
{ fetchurl }: [ |
||||
EOL |
||||
|
||||
# enter a temporary directory containing the source code, copied from the derivation |
||||
srcdir="$(mktemp -d)" |
||||
cp -r "$(nix-build -A omnisharp-roslyn.src ../../../..)"/. "$srcdir" |
||||
rm -f "$srcdir"/global.json |
||||
|
||||
pushd $srcdir >&2 |
||||
|
||||
tmpdir="$(mktemp -d -p "$(pwd)")" # must be under source root |
||||
|
||||
mapfile -t repos < <( |
||||
xmlstarlet sel -t -v 'configuration/packageSources/add/@value' -n NuGet.Config | |
||||
while IFS= read index |
||||
do |
||||
curl --compressed -fsL "$index" | \ |
||||
jq -r '.resources[] | select(."@type" == "PackageBaseAddress/3.0.0")."@id"' |
||||
done |
||||
) |
||||
|
||||
dotnet msbuild -t:restore -p:Configuration=Release -p:RestorePackagesPath="$tmpdir" \ |
||||
-p:RestoreNoCache=true -p:RestoreForce=true \ |
||||
"$srcdir/src/OmniSharp.Stdio.Driver/OmniSharp.Stdio.Driver.csproj" >&2 |
||||
|
||||
cd "$tmpdir" |
||||
for package in * |
||||
do |
||||
cd "$package" |
||||
for version in * |
||||
do |
||||
found=false |
||||
for repo in "${repos[@]}" |
||||
do |
||||
url="$repo$package/$version/$package.$version.nupkg" |
||||
if curl -fsL "$url" -o /dev/null |
||||
then |
||||
found=true |
||||
break |
||||
fi |
||||
done |
||||
|
||||
if ! $found |
||||
then |
||||
echo "couldn't find $package $version" >&2 |
||||
exit 1 |
||||
fi |
||||
|
||||
sha256=$(nix-prefetch-url "$url" 2>/dev/null) |
||||
cat << EOL |
||||
{ |
||||
pname = "$package"; |
||||
version = "$version"; |
||||
src = fetchurl { |
||||
url = "$url"; |
||||
sha256 = "$sha256"; |
||||
}; |
||||
} |
||||
EOL |
||||
done |
||||
cd .. |
||||
done |
||||
cd .. |
||||
|
||||
cat << EOL |
||||
] |
||||
EOL |
||||
|
||||
popd >&2 |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,25 @@ |
||||
{ buildGoModule, fetchFromGitHub, lib }: |
||||
buildGoModule rec { |
||||
pname = "aws-sso-cli"; |
||||
version = "1.9.2"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "synfinatic"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "9/dZfRmFAyE5NEMmuiVsRvwgqQrTNhXkTR9N0d3zgfk="; |
||||
}; |
||||
vendorSha256 = "BlSCLvlrKiubMtfFSZ5ppMmL2ZhJcBXxJfeRgMADYB4="; |
||||
|
||||
postInstall = '' |
||||
mv $out/bin/cmd $out/bin/aws-sso |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/synfinatic/aws-sso-cli"; |
||||
description = "AWS SSO CLI is a secure replacement for using the aws configure sso wizard"; |
||||
license = licenses.gpl3Plus; |
||||
maintainers = with maintainers; [ devusb ]; |
||||
mainProgram = "aws-sso"; |
||||
}; |
||||
} |
Loading…
Reference in new issue