Skip to content

Commit

Permalink
refactor(tests): remove vendorized autoscript
Browse files Browse the repository at this point in the history
  • Loading branch information
nilp0inter committed Jan 13, 2025
1 parent e3ed830 commit af85f14
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4,665 deletions.
19 changes: 19 additions & 0 deletions nix/tests/_common/tests/autofirma_test_server/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
{ pkgs, lib, config, ... }:
let
cfg = config.autofirma-test-server;
autoscript = pkgs.stdenv.mkDerivation {
pname = "AutoScript";
version = "1-8-2-1";
src = pkgs.fetchzip {
url = "https://administracionelectronica.gob.es/ctt/resources/Soluciones/138/Descargas/AutoScript%20v1-8-2-1.zip?idIniciativa=138&idElemento=17573";
extension = "zip";
hash = "sha256-r8V+v5wCnjOGGFzgVW9+qIcVufimeXOmz085dhPoD80=";
};
phases = "installPhase";
installPhase = ''
mkdir -p $out
cp -rv "$src/js" $out
'';
};
autofirma-nix-test-certs = pkgs.stdenv.mkDerivation {
name = "autofirma-nix-test-certs";
buildInputs = [ pkgs.openssl ];
Expand Down Expand Up @@ -88,6 +102,11 @@ in
file_server
}
handle_path /js/* {
root * ${autoscript}/js
file_server
}
file_server
'';

Expand Down
Loading

0 comments on commit af85f14

Please sign in to comment.