feat: replace the older script with a nix flake, gitlab pipeline incoming shortly

This commit is contained in:
silver 2023-09-30 19:08:15 +01:00
parent 7e50989ca5
commit 0a3aba3758
3 changed files with 79 additions and 23 deletions

20
flake.nix Normal file
View file

@ -0,0 +1,20 @@
{
description = "Skynet Almnui Renew";
inputs = {
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
in rec {
# `nix build`
defaultPackage = pkgs.stdenv.mkDerivation {
name = "skynet-website-renew";
src = self;
installPhase = "mkdir -p $out; cp -R src/* $out";
};
}
);
}