add automated deployments
This commit is contained in:
parent
c54f83ae4d
commit
385210f9ef
4 changed files with 112 additions and 0 deletions
23
flake.nix
Normal file
23
flake.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
description = "https://kitsu.love";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
};
|
||||
|
||||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
perSystem = { config, self', pkgs, lib, system, ... }: {
|
||||
packages.default = pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "noe.sh";
|
||||
src = ./.;
|
||||
installPhase = ''
|
||||
cp -r . $out/
|
||||
cd $out/
|
||||
rm -rf .* *.nix *.lock
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue