Deno #6

Merged
didiercrunch merged 5 commits from deno into master 2024-07-02 19:51:25 -04:00
30 changed files with 62 additions and 26 deletions
Showing only changes of commit a31390d55a - Show all commits

No files matched your search

+18
View File
@@ -1 +1,19 @@
image: nixos/nix
workflow:
rules:
- if: $CI_COMMIT_BRANCH
pages:
stage: deploy
script:
- mkdir -p "$HOME/.config/nix"
- echo 'experimental-features = nix-command flakes' > "$HOME/.config/nix/nix.conf"
- nix build
- cp -r result/ public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == "main"
environment: production
Generated
+25 -7
View File
@@ -1,12 +1,15 @@
{ {
"nodes": { "nodes": {
"flake-utils": { "flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": { "locked": {
"lastModified": 1649676176, "lastModified": 1710146030,
"narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=", "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "a4b154ebbdc88c8498a5c7b01589addc9e9cb678", "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -17,16 +20,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1650998007, "lastModified": 1719848872,
"narHash": "sha256-NcJnbGDBBN023x8s3ll3HZxBcQoPq1ry9E2sjg+4flc=", "narHash": "sha256-H3+EC5cYuq+gQW8y0lSrrDZfH71LB4DAf+TDFyvwCNA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a3917caedfead19f853aa5769de4c3ea4e4db584", "rev": "00d80d13810dbfea8ab4ed1009b09100cca86ba8",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "nixos-21.11", "ref": "nixos-unstable",
"type": "indirect" "type": "indirect"
} }
}, },
@@ -35,6 +38,21 @@
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",
+19 -19
View File
@@ -1,32 +1,32 @@
{ {
description = "Trying nest.js"; description = "Phenix website";
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-21.11"; nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { self, nixpkgs, flake-utils }: outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in let
rec { pkgs = nixpkgs.legacyPackages.${system};
packages = flake-utils.lib.flattenTree { build-static-files = pkgs.stdenv.mkDerivation {
hello = pkgs.hello; name = "phenix-website-static-assets";
gitAndTools = pkgs.gitAndTools; src = ./static;
nodejs = pkgs.nodejs; buildPhase = ''
find . -type f -exec ${pkgs.brotli}/bin/brotli -9 -f -k {} \;
'';
installPhase = ''
cp -r . $out
'';
}; };
defaultPackage = packages.hello; in {
apps.hello = flake-utils.lib.mkApp { drv = packages.hello; }; packages = { static = build-static-files; };
defaultApp = apps.hello;
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
name = "Nid-JS"; name = "Phenix-Website";
buildInputs = with pkgs; [ buildInputs = with pkgs; [ deno ];
nodejs
flyway
nodePackages.node2nix
];
}; };
} });
);
} }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.