finalized project
This commit is contained in:
1 parent
b8b3e348e8
commit
4b87e9d20c
15 files changed
+1027
-4
No files matched your search
@@ -6,7 +6,7 @@
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, }:
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
@@ -22,12 +22,28 @@
|
||||
installPhase = ''
|
||||
mv test_results.txt $out
|
||||
'';
|
||||
|
||||
|
||||
};
|
||||
swagger-ui-src = pkgs.stdenv.mkDerivation {
|
||||
name = "swagger-ui-src";
|
||||
src = pkgs.fetchzip {
|
||||
url = "https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.0.0.zip";
|
||||
hash = "sha256-M/P/teEMqQ0gW0k/mvsr/VnkzuTI82+OMc8PAxCQAKM=";
|
||||
};
|
||||
installPhase = ''
|
||||
cp -r dist $out
|
||||
'';
|
||||
};
|
||||
swagger-ui = pkgs.writeShellApplication {
|
||||
name = "swagger-ui";
|
||||
runtimeInputs = [swagger-ui-src pkgs.python311];
|
||||
text = ''
|
||||
exec ${pkgs.python311}/bin/python -m http.server -d ${swagger-ui-src} 7766
|
||||
'';
|
||||
};
|
||||
in {
|
||||
packages = {
|
||||
test = test;
|
||||
swagger-ui = swagger-ui;
|
||||
};
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [deno
|
||||
|
||||
Reference in new issue
Block a user