commit
b7aba4fb0f
Can't render this file because it has a wrong number of fields in line 72.
|
@ -0,0 +1,25 @@ |
||||
let |
||||
port = 43110; |
||||
in |
||||
import ./make-test-python.nix ({ pkgs, ... }: { |
||||
name = "zeronet-conservancy"; |
||||
meta = with pkgs.lib.maintainers; { |
||||
maintainers = [ fgaz ]; |
||||
}; |
||||
|
||||
nodes.machine = { config, pkgs, ... }: { |
||||
services.zeronet = { |
||||
enable = true; |
||||
package = pkgs.zeronet-conservancy; |
||||
inherit port; |
||||
}; |
||||
}; |
||||
|
||||
testScript = '' |
||||
machine.wait_for_unit("zeronet.service") |
||||
|
||||
machine.wait_for_open_port(${toString port}) |
||||
|
||||
machine.succeed("curl --fail -H 'Accept: text/html, application/xml, */*' localhost:${toString port}/Stats") |
||||
''; |
||||
}) |
@ -1,20 +1,20 @@ |
||||
{ |
||||
beta = import ./browser.nix { |
||||
channel = "beta"; |
||||
version = "101.0.1210.19"; |
||||
version = "103.0.1264.21"; |
||||
revision = "1"; |
||||
sha256 = "sha256:1kgc19ryw69xiqppz90d6sa45g99hzkh7x5yk9d3xlh1gc1xn54p"; |
||||
sha256 = "sha256:1336i0hy7xnla0pi4vahaxshhmivi1zljhaxyg63352bc7w9j64f"; |
||||
}; |
||||
dev = import ./browser.nix { |
||||
channel = "dev"; |
||||
version = "102.0.1227.0"; |
||||
version = "104.0.1287.1"; |
||||
revision = "1"; |
||||
sha256 = "sha256:0dnyandri7yg7c9812pnsxqszxyqcssxf87yskjg2vw95hawf11x"; |
||||
sha256 = "sha256:10h360vfsfql42i6mpdvf8d0219506ipbk3hdpwl0jhlsphmhw61"; |
||||
}; |
||||
stable = import ./browser.nix { |
||||
channel = "stable"; |
||||
version = "100.0.1185.44"; |
||||
version = "102.0.1245.44"; |
||||
revision = "1"; |
||||
sha256 = "sha256:0zv1zyijh620xz36a6nmhv7rbv4ln5f245hyh0w1sngynsl1rz89"; |
||||
sha256 = "sha256:10r12xlkcnag5jdmnwpqsbkjx1ih1027l573vxmcxmvpmj6y4373"; |
||||
}; |
||||
} |
||||
|
@ -0,0 +1,18 @@ |
||||
# Setup hook for checking whether Python imports succeed |
||||
echo "Sourcing luarocks-check-hook.sh" |
||||
|
||||
luarocksCheckPhase () { |
||||
echo "Executing luarocksCheckPhase" |
||||
runHook preCheck |
||||
|
||||
luarocks test |
||||
|
||||
runHook postCheck |
||||
echo "Finished executing luarocksCheckPhase" |
||||
} |
||||
|
||||
if [ -z "${dontLuarocksCheck-}" ] && [ -z "${checkPhase-}" ]; then |
||||
echo "Using luarocksCheckPhase" |
||||
checkPhase+=" luarocksCheckPhase" |
||||
fi |
||||
|
@ -0,0 +1,28 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, pytestCheckHook |
||||
, six |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "infinity"; |
||||
version = "1.5"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "1npcc4adcc3c9diw4kgmd5c0ikym1iz364p2zp6gs011rqaprald"; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
six |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "All-in-one infinity value for Python. Can be compared to any object."; |
||||
homepage = "https://github.com/kvesteri/infinity"; |
||||
license = licenses.bsd3; |
||||
maintainers = with maintainers; [ mupdt ]; |
||||
}; |
||||
} |
@ -0,0 +1,91 @@ |
||||
{ lib |
||||
, stdenv |
||||
, fetchpatch |
||||
, fetchurl |
||||
, unzip |
||||
, gdc |
||||
, SDL |
||||
, SDL_mixer |
||||
, bulletml |
||||
}: |
||||
|
||||
let |
||||
debianPatch = patchname: hash: fetchpatch { |
||||
name = "${patchname}.patch"; |
||||
url = "https://sources.debian.org/data/main/t/titanion/0.3.dfsg1-7/debian/patches/${patchname}"; |
||||
sha256 = hash; |
||||
}; |
||||
|
||||
in stdenv.mkDerivation rec { |
||||
pname = "titanion"; |
||||
version = "0.3"; |
||||
|
||||
src = fetchurl { |
||||
url = "http://abagames.sakura.ne.jp/windows/ttn${lib.replaceStrings ["."] ["_"] version}.zip"; |
||||
sha256 = "sha256-fR0cufi6dU898wP8KGl/vxbfQJzMmMxlYZ3QNGLajfM="; |
||||
}; |
||||
|
||||
patches = [ |
||||
(debianPatch |
||||
"imports.patch" |
||||
"sha256-kSXpaTpYq6w9e0yLES2QGNQ8+vFIiOpw2P9MA8gZr8s=") |
||||
(debianPatch |
||||
"fix.diff" |
||||
"sha256-0WkkfuhJaAMY46VVyc3ldMQwgOVoQJDw/8zbm6H2sHU=") |
||||
(debianPatch |
||||
"directories.patch" |
||||
"sha256-fhQJuy2+r0YOQNwMqG85Gr7fJehmf00Scran+NPYQrw=") |
||||
(debianPatch |
||||
"windowed.patch" |
||||
"sha256-xouXIuIKfKFGsoOEJqL9jdsdnkX4nqwPGcoB+32Wvgo=") |
||||
(debianPatch |
||||
"dotfile.patch" |
||||
"sha256-sAml53Hh0ltbqN8xZDZuUJcaPfjK56jf4ymFXYD38v0=") |
||||
(debianPatch |
||||
"window-resize.patch" |
||||
"sha256-WwAi1aU4CmaX+O8fw0TfLhNSXFaObExrn7nuhesVkKM=") |
||||
(debianPatch |
||||
"makefile.patch" |
||||
"sha256-g0jDPmc0SWXkTLhiczeTse/WGCtgMUsbyPNZzwK3U+o=") |
||||
(debianPatch |
||||
"dlang_v2.patch" |
||||
"sha256-tfTAAKlPFSjbfAK1EjeB3unj9tbMlNaajJ+VVSMMiYw=") |
||||
(debianPatch |
||||
"gdc-8.patch" |
||||
"sha256-BxkPfSEymq7TDA+yjJHaYsjtGr0Tuu1/sWLwRBAMga4=") |
||||
]; |
||||
|
||||
postPatch = '' |
||||
rm *.dll ttn.exe |
||||
rm -r lib |
||||
for f in src/abagames/ttn/screen.d src/abagames/util/sdl/sound.d src/abagames/util/sdl/texture.d; do |
||||
substituteInPlace $f \ |
||||
--replace "/usr/" "$out/" |
||||
done |
||||
''; |
||||
|
||||
nativeBuildInputs = [ |
||||
unzip |
||||
gdc |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
SDL |
||||
SDL_mixer |
||||
bulletml |
||||
]; |
||||
|
||||
installPhase = '' |
||||
install -Dm755 titanion $out/bin/titanion |
||||
mkdir -p $out/share/games/titanion |
||||
cp -r sounds images $out/share/games/titanion/ |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "http://www.asahi-net.or.jp/~cs8k-cyu/windows/ttn_e.html"; |
||||
description = "Strike down super high-velocity swooping insects"; |
||||
license = licenses.bsd2; |
||||
maintainers = with maintainers; [ fgaz ]; |
||||
platforms = platforms.all; |
||||
}; |
||||
} |
@ -0,0 +1,30 @@ |
||||
{ lib |
||||
, buildGoModule |
||||
, fetchFromGitHub |
||||
, libpcap |
||||
}: |
||||
|
||||
buildGoModule rec { |
||||
pname = "dnsmon-go"; |
||||
version = "unstable-2022-05-13"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "jonpulsifer"; |
||||
repo = pname; |
||||
rev = "ec1d59f1f1314ce310ad4c04d2924e0ebd857f1d"; |
||||
hash = "sha256-lAJ2bjs5VLzrHd09eFK4X0V/cCee2QsgdgiKq+y2c10="; |
||||
}; |
||||
|
||||
vendorSha256 = "sha256-aiX+NGUsFK0N9vC5baAHHMr28CbF5Xa4WgYLFFLBYTs="; |
||||
|
||||
buildInputs = [ |
||||
libpcap |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool to collect DNS traffic"; |
||||
homepage = "https://github.com/jonpulsifer/dnsmon-go"; |
||||
license = with licenses; [ mit ]; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,31 @@ |
||||
{ lib |
||||
, buildGoModule |
||||
, fetchFromGitHub |
||||
, libpcap |
||||
}: |
||||
|
||||
buildGoModule rec { |
||||
pname = "secrets-extractor"; |
||||
version = "1.0.1"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "Xenios91"; |
||||
repo = "Secrets-Extractor"; |
||||
rev = "v${version}"; |
||||
hash = "sha256-cwEG0cXlyhrUSQAuZ/5KVqJtez13GvZghabsooXCM/U="; |
||||
}; |
||||
|
||||
vendorSha256 = "sha256-KhAaBNSpFu7LAWiHCWD1OssexW9N96ArDb7Oo1AaiWI="; |
||||
|
||||
buildInputs = [ |
||||
libpcap |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool to check packets for secrets"; |
||||
homepage = "https://github.com/Xenios91/Secrets-Extractor"; |
||||
# https://github.com/Xenios91/Secrets-Extractor/issues/1 |
||||
license = with licenses; [ unfree ]; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue