commit
8ac32ac4de
@ -1,84 +0,0 @@ |
||||
import ./make-test-python.nix ({ pkgs, ... }: |
||||
|
||||
let |
||||
imageEnv = pkgs.buildEnv { |
||||
name = "k3s-pause-image-env"; |
||||
paths = with pkgs; [ tini (hiPrio coreutils) busybox ]; |
||||
}; |
||||
pauseImage = pkgs.dockerTools.streamLayeredImage { |
||||
name = "test.local/pause"; |
||||
tag = "local"; |
||||
contents = imageEnv; |
||||
config.Entrypoint = [ "/bin/tini" "--" "/bin/sleep" "inf" ]; |
||||
}; |
||||
# Don't use the default service account because there's a race where it may |
||||
# not be created yet; make our own instead. |
||||
testPodYaml = pkgs.writeText "test.yml" '' |
||||
apiVersion: v1 |
||||
kind: ServiceAccount |
||||
metadata: |
||||
name: test |
||||
--- |
||||
apiVersion: v1 |
||||
kind: Pod |
||||
metadata: |
||||
name: test |
||||
spec: |
||||
serviceAccountName: test |
||||
containers: |
||||
- name: test |
||||
image: test.local/pause:local |
||||
imagePullPolicy: Never |
||||
command: ["sh", "-c", "sleep inf"] |
||||
''; |
||||
in |
||||
{ |
||||
name = "k3s"; |
||||
meta = with pkgs.lib.maintainers; { |
||||
maintainers = [ euank ]; |
||||
}; |
||||
|
||||
nodes.machine = { pkgs, ... }: { |
||||
environment.systemPackages = with pkgs; [ k3s gzip ]; |
||||
|
||||
# k3s uses enough resources the default vm fails. |
||||
virtualisation.memorySize = 1536; |
||||
virtualisation.diskSize = 4096; |
||||
|
||||
services.k3s = { |
||||
enable = true; |
||||
role = "server"; |
||||
docker = true; |
||||
# Slightly reduce resource usage |
||||
extraFlags = "--no-deploy coredns,servicelb,traefik,local-storage,metrics-server --pause-image test.local/pause:local"; |
||||
}; |
||||
|
||||
users.users = { |
||||
noprivs = { |
||||
isNormalUser = true; |
||||
description = "Can't access k3s by default"; |
||||
password = "*"; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
testScript = '' |
||||
start_all() |
||||
|
||||
machine.wait_for_unit("k3s") |
||||
machine.succeed("k3s kubectl cluster-info") |
||||
machine.fail("sudo -u noprivs k3s kubectl cluster-info") |
||||
# FIXME: this fails with the current nixos kernel config; once it passes, we should uncomment it |
||||
# machine.succeed("k3s check-config") |
||||
|
||||
machine.succeed( |
||||
"${pauseImage} | docker load" |
||||
) |
||||
|
||||
machine.succeed("k3s kubectl apply -f ${testPodYaml}") |
||||
machine.succeed("k3s kubectl wait --for 'condition=Ready' pod/test") |
||||
machine.succeed("k3s kubectl delete -f ${testPodYaml}") |
||||
|
||||
machine.shutdown() |
||||
''; |
||||
}) |
@ -1,7 +1,7 @@ |
||||
{ |
||||
"version": "1.10.14", |
||||
"desktopSrcHash": "/y4pJSNQrN0Ksc+yjB3Xl6t8AZLNtZ/Rm0UoAhwlgp8=", |
||||
"version": "1.10.15", |
||||
"desktopSrcHash": "2XSTE6NbhWYAH3tr1Kd16vEAGn3ApZ0a9PdpoHJn3uE=", |
||||
"desktopYarnHash": "1rnzaxy7l7912j6df8w2kw66pqwrs7kg7hd0680i38c1db5f4y6n", |
||||
"webSrcHash": "2CagKKFulLi8Gl/IPabzKfCFTBmw8SGa22hTM+7IewE=", |
||||
"webYarnHash": "15jjryjav3v58j4260ig548g1m6g6vhid4iigpv7k8pa4rhcwnyh" |
||||
"webSrcHash": "lX31OWJ6/S+PbOKvEqYALtOIoaJjwg4ng/wHOfXCSqg=", |
||||
"webYarnHash": "0j6xv64w5vszhlfqz37asqxsql0m89gscrl270dlxzycd4ybzghz" |
||||
} |
||||
|
@ -1,21 +1,21 @@ |
||||
{ |
||||
"name": "emscripten", |
||||
"version": "2.0.26", |
||||
"version": "3.1.10", |
||||
"private": true, |
||||
"devDependencies": { |
||||
"es-check": "^5.2.4", |
||||
"eslint": "^7.29.0", |
||||
"es-check": "^6.1.1", |
||||
"eslint": "^8.6.0", |
||||
"eslint-config-google": "^0.14.0", |
||||
"source-map": "0.5.7", |
||||
"ws": "~0.4.28" |
||||
"source-map": "0.7.3", |
||||
"ws": "^8.5.0" |
||||
}, |
||||
"dependencies": { |
||||
"acorn": "8.4.1", |
||||
"google-closure-compiler": "20210601.0.0", |
||||
"html-minifier-terser": "5.1.1", |
||||
"acorn": "^8.7.0", |
||||
"google-closure-compiler": "20220104.0.0", |
||||
"html-minifier-terser": "6.1.0", |
||||
"wasm2c": "1.0.0" |
||||
}, |
||||
"scripts": { |
||||
"lint": "eslint src/parseTools.js" |
||||
"lint": "eslint ." |
||||
} |
||||
} |
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,26 +0,0 @@ |
||||
{ lib, buildGoPackage, fetchFromGitHub }: |
||||
|
||||
with lib; |
||||
|
||||
buildGoPackage rec { |
||||
pname = "kubicorn"; |
||||
version = "2018-10-13-${lib.strings.substring 0 7 rev}"; |
||||
rev = "4c7f3623e9188fba43778271afe161a4facfb657"; |
||||
|
||||
src = fetchFromGitHub { |
||||
rev = rev; |
||||
owner = "kubicorn"; |
||||
repo = "kubicorn"; |
||||
sha256 = "18h5sj4lcivrwjq2hzn7c3g4mblw17zicb5nma8sh7sakwzyg1k9"; |
||||
}; |
||||
|
||||
subPackages = ["."]; |
||||
goPackagePath = "github.com/kubicorn/kubicorn"; |
||||
|
||||
meta = { |
||||
description = "Simple, cloud native infrastructure for Kubernetes"; |
||||
homepage = "http://kubicorn.io/"; |
||||
maintainers = with lib.maintainers; [ offline ]; |
||||
license = lib.licenses.asl20; |
||||
}; |
||||
} |
@ -0,0 +1,29 @@ |
||||
{ lib |
||||
, stdenv |
||||
, autoreconfHook |
||||
, fetchFromGitLab |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "xorg-autoconf"; |
||||
version = "1.19.3"; |
||||
|
||||
src = fetchFromGitLab { |
||||
domain = "gitlab.freedesktop.org"; |
||||
group = "xorg"; |
||||
owner = "util"; |
||||
repo = "macros"; |
||||
rev = "util-macros-${version}"; |
||||
sha256 = "sha256-+yEMCjLztdY5LKTNjfhudDS0fdaOj4LKZ3YL5witFR4="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ autoreconfHook ]; |
||||
|
||||
meta = with lib; { |
||||
description = "GNU autoconf macros shared across X.Org projects"; |
||||
homepage = "https://gitlab.freedesktop.org/xorg/util/macros"; |
||||
maintainers = with maintainers; [ raboof ]; |
||||
license = licenses.mit; |
||||
platforms = platforms.unix; |
||||
}; |
||||
} |
@ -0,0 +1,36 @@ |
||||
{ lib |
||||
, stdenv |
||||
, fetchFromGitLab |
||||
, xorg |
||||
, autoreconfHook |
||||
, pkg-config |
||||
, xorg-autoconf |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "xlogo"; |
||||
version = "1.0.5"; |
||||
|
||||
src = fetchFromGitLab { |
||||
domain = "gitlab.freedesktop.org"; |
||||
group = "xorg"; |
||||
owner = "app"; |
||||
repo = "xlogo"; |
||||
rev = "refs/tags/xlogo-${version}"; |
||||
hash = "sha256-AyNFzRZtbCKkGacBCaGZZkLRTAGq5TrA2OXGqwoKq24="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ xorg-autoconf autoreconfHook pkg-config ]; |
||||
|
||||
configureFlags = [ "--with-appdefaultdir=$out/share/X11/app-defaults" ]; |
||||
|
||||
buildInputs = [ xorg.libX11 xorg.libXext xorg.libSM xorg.libXmu xorg.libXaw xorg.libXt ]; |
||||
|
||||
meta = with lib; { |
||||
description = "X Window System logo display demo"; |
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xlogo"; |
||||
maintainers = with maintainers; [ raboof ]; |
||||
platforms = platforms.unix; |
||||
license = licenses.mit; |
||||
}; |
||||
} |
@ -1,27 +0,0 @@ |
||||
{ lib, buildGoPackage, fetchFromGitHub }: |
||||
|
||||
buildGoPackage rec { |
||||
pname = "phraseapp-client"; |
||||
version = "1.17.1"; |
||||
|
||||
goPackagePath = "github.com/phrase/phraseapp-client"; |
||||
subPackages = [ "." ]; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "phrase"; |
||||
repo = "phraseapp-client"; |
||||
rev = version; |
||||
sha256 = "0j8fygp9bw68p1736hq7n7qv86rghchxbdm1xibvk5jpgph1nzl7"; |
||||
}; |
||||
|
||||
postInstall = '' |
||||
ln -s $out/bin/phraseapp-client $out/bin/phraseapp |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "http://docs.phraseapp.com"; |
||||
description = "PhraseApp API v2 Command Line Client"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ manveru ]; |
||||
}; |
||||
} |
@ -0,0 +1,37 @@ |
||||
{ lib |
||||
, fetchFromGitHub |
||||
, python3 |
||||
}: |
||||
|
||||
python3.pkgs.buildPythonApplication rec { |
||||
pname = "graphw00f"; |
||||
version = "1.1.2"; |
||||
format = "other"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "dolevf"; |
||||
repo = pname; |
||||
rev = version; |
||||
hash = "sha256-DzpSbaGYtRXtRjZBn9rgZumuCqdZ/auKiWO5/TYIE34="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [ |
||||
requests |
||||
]; |
||||
|
||||
installPhase = '' |
||||
runHook preInstall |
||||
|
||||
install -vD main.py $out/bin/graphw00f |
||||
install -vD {conf,version}.py -t $out/${python3.sitePackages}/ |
||||
install -vD graphw00f/* -t $out/${python3.sitePackages}/graphw00f |
||||
|
||||
runHook postInstall |
||||
''; |
||||
meta = with lib; { |
||||
description = "GraphQL Server Engine Fingerprinting utility"; |
||||
homepage = "https://github.com/dolevf/graphw00f"; |
||||
license = licenses.bsd3; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,25 @@ |
||||
{ lib |
||||
, buildGoModule |
||||
, fetchFromGitHub |
||||
}: |
||||
|
||||
buildGoModule rec { |
||||
pname = "jwt-hack"; |
||||
version = "1.1.2"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "hahwul"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-K0ZtEi0zAKRlIGvorrXmtmkcMvyLIXWPnVMQANZbClk="; |
||||
}; |
||||
|
||||
vendorSha256 = "sha256-VYh3oRy8bmtXf6AnLNi/M2kA6t+crW3AXBiGovpdt8U="; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool for attacking JWT"; |
||||
homepage = "https://github.com/hahwul/jwt-hack"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue