commit
6c8157dbc8
@ -1,25 +1,57 @@ |
||||
{ lib, buildGoPackage, fetchFromGitHub }: |
||||
{ lib |
||||
, buildGoModule |
||||
, fetchFromGitHub |
||||
, installShellFiles |
||||
}: |
||||
|
||||
buildGoPackage rec { |
||||
buildGoModule rec { |
||||
pname = "brig"; |
||||
version = "0.4.1"; |
||||
rev = "v${version}"; |
||||
|
||||
goPackagePath = "github.com/sahib/brig"; |
||||
subPackages = ["."]; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "sahib"; |
||||
repo = "brig"; |
||||
inherit rev; |
||||
rev = "v${version}"; |
||||
sha256 = "0gi39jmnzqrgj146yw8lcmgmvzx7ii1dgw4iqig7kx8c0jiqi600"; |
||||
}; |
||||
|
||||
vendorSha256 = null; |
||||
|
||||
nativeBuildInputs = [ installShellFiles ]; |
||||
|
||||
subPackages = [ "." ]; |
||||
|
||||
ldflags = [ "-s" "-w" ] ++ (with lib; |
||||
mapAttrsToList (n: v: "-X github.com/sahib/brig/version.${n}=${v}") |
||||
(with versions; { |
||||
Major = major version; |
||||
Minor = minor version; |
||||
Patch = patch version; |
||||
ReleaseType = ""; |
||||
BuildTime = "1970-01-01T00:00:00+0000"; |
||||
GitRev = src.rev; |
||||
})); |
||||
|
||||
postInstall = '' |
||||
installShellCompletion --cmd brig \ |
||||
--bash $src/autocomplete/bash_autocomplete \ |
||||
--zsh $src/autocomplete/zsh_autocomplete |
||||
''; |
||||
|
||||
# There are no tests for the brig executable. |
||||
doCheck = false; |
||||
|
||||
meta = with lib; { |
||||
description = "File synchronization on top of ipfs with git like interface and FUSE filesystem"; |
||||
homepage = "https://github.com/sahib/brig"; |
||||
description = "File synchronization on top of IPFS with a git-like interface and a FUSE filesystem"; |
||||
longDescription = '' |
||||
brig is a distributed and secure file synchronization tool with a version |
||||
control system. It is based on IPFS, written in Go and will feel familiar |
||||
to git users. Think of it as a swiss army knife for file synchronization |
||||
or as a peer to peer alternative to Dropbox. |
||||
''; |
||||
homepage = "https://brig.readthedocs.io"; |
||||
changelog = "https://github.com/sahib/brig/releases/tag/${src.rev}"; |
||||
license = licenses.agpl3; |
||||
platforms = platforms.unix; |
||||
maintainers = with maintainers; [ offline ]; |
||||
}; |
||||
} |
||||
|
@ -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 ]; |
||||
}; |
||||
} |
@ -0,0 +1,62 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, distro |
||||
, fetchFromGitHub |
||||
, jdk |
||||
, numpy |
||||
, pandas |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, setuptools-scm |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "tabula-py"; |
||||
version = "2.4.0"; |
||||
format = "setuptools"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "chezou"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-cVhtFfzDQvVnDaXOU3dx/m3LENMMG3E+RnFVFCZ0AAc="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
distro |
||||
numpy |
||||
pandas |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
jdk |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"tabula" |
||||
]; |
||||
|
||||
disabledTests = [ |
||||
# Tests require network access |
||||
"test_convert_remote_file" |
||||
"test_read_pdf_with_remote_template" |
||||
"test_read_remote_pdf" |
||||
"test_read_remote_pdf_with_custom_user_agent" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Module to extract table from PDF into pandas DataFrame"; |
||||
homepage = "https://github.com/chezou/tabula-py"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -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"; |
||||
}; |
||||
} |
@ -1,38 +0,0 @@ |
||||
From 0a763a13ef55964395dff60283ececc16f957792 Mon Sep 17 00:00:00 2001
|
||||
From: Derek Kulinski <d@kulinski.us>
|
||||
Date: Sun, 8 May 2022 01:30:39 -0700
|
||||
Subject: [PATCH] Fix Jinja2 3.1.0
|
||||
|
||||
---
|
||||
salt/utils/jinja.py | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/salt/utils/jinja.py b/salt/utils/jinja.py
|
||||
index 0cb70bf64a..322c2f7f46 100644
|
||||
--- a/salt/utils/jinja.py
|
||||
+++ b/salt/utils/jinja.py
|
||||
@@ -25,10 +25,11 @@ import salt.utils.json
|
||||
import salt.utils.stringutils
|
||||
import salt.utils.url
|
||||
import salt.utils.yaml
|
||||
-from jinja2 import BaseLoader, Markup, TemplateNotFound, nodes
|
||||
+from jinja2 import BaseLoader, TemplateNotFound, nodes
|
||||
from jinja2.environment import TemplateModule
|
||||
from jinja2.exceptions import TemplateRuntimeError
|
||||
from jinja2.ext import Extension
|
||||
+from markupsafe import Markup
|
||||
from salt.exceptions import TemplateError
|
||||
from salt.utils.decorators.jinja import jinja_filter, jinja_global, jinja_test
|
||||
from salt.utils.odict import OrderedDict
|
||||
@@ -706,7 +707,7 @@ def method_call(obj, f_name, *f_args, **f_kwargs):
|
||||
return getattr(obj, f_name, lambda *args, **kwargs: None)(*f_args, **f_kwargs)
|
||||
|
||||
|
||||
-@jinja2.contextfunction
|
||||
+@jinja2.pass_context
|
||||
def show_full_context(ctx):
|
||||
return salt.utils.data.simple_types_filter(
|
||||
{key: value for key, value in ctx.items()}
|
||||
--
|
||||
2.35.1
|
||||
|
@ -0,0 +1,25 @@ |
||||
{ lib |
||||
, buildGoModule |
||||
, fetchFromGitHub |
||||
}: |
||||
|
||||
buildGoModule rec { |
||||
pname = "jsubfinder"; |
||||
version = "unstable-2022-05-31"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "ThreatUnkown"; |
||||
repo = pname; |
||||
rev = "e21de1ebc174bb69485f1c224e8063c77d87e4ad"; |
||||
hash = "sha256-QjRYJyk0uFGa6FCCYK9SIJhoyam4ALsQJ26DsmbNk8s="; |
||||
}; |
||||
|
||||
vendorSha256 = "sha256-pr4KkszyzEl+yLJousx29tr7UZDJf0arEfXBb7eumww="; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool to search for in Javascript hidden subdomains and secrets"; |
||||
homepage = "https://github.com/ThreatUnkown/jsubfinder"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,40 @@ |
||||
{ lib |
||||
, buildGoModule |
||||
, fetchFromGitHub |
||||
, osv-detector |
||||
, testers |
||||
}: |
||||
|
||||
buildGoModule rec { |
||||
pname = "osv-detector"; |
||||
version = "0.6.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "G-Rath"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-Y/9q4ZJ4vxDitqrM4hGe49iqLYk4ebhTs4jrD7P8fdw="; |
||||
}; |
||||
|
||||
vendorSha256 = "sha256-KAxpDQIRrLZIOvfW8wf0CV4Fj6l3W6nNZNCH3ZE6yJc="; |
||||
|
||||
ldflags = [ |
||||
"-w" |
||||
"-s" |
||||
"-X main.version=${version}" |
||||
]; |
||||
|
||||
passthru.tests.version = testers.testVersion { |
||||
package = osv-detector; |
||||
command = "osv-detector -version"; |
||||
version = "osv-detector ${version} (unknown, commit none)"; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
description = "Auditing tool for detecting vulnerabilities"; |
||||
homepage = "https://github.com/G-Rath/osv-detector"; |
||||
changelog = "https://github.com/G-Rath/osv-detector/releases/tag/v${version}"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue