This might work better

This commit is contained in:
Nox Sluijtman 2024-02-10 20:39:12 +01:00
parent 79fd67e916
commit 56382ecb91
4 changed files with 1 additions and 110 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
public
voidcruiser.nl
.direnv
result

View file

@ -1,17 +0,0 @@
src := public
target := voidcruiser.nl
host := voidDroplet
push: $(target)
rsync -ahv $(target) $(host):/var/www/ --delete
$(target): build
mv $(src) $(target)
build: clean
hugo
clean:
rm -rf $(src) $(target)
.PHONY := build push clean

View file

@ -1,61 +0,0 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1696983906,
"narHash": "sha256-L7GyeErguS7Pg4h8nK0wGlcUTbfUMDu+HMf1UcyP72k=",
"owner": "NixOs",
"repo": "nixpkgs",
"rev": "bd1cde45c77891214131cbbea5b1203e485a9d51",
"type": "github"
},
"original": {
"owner": "NixOs",
"ref": "nixos-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"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",
"version": 7
}

View file

@ -1,32 +0,0 @@
{ description = "Website flake";
inputs = {
nixpkgs.url = "github:NixOs/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in {
packages = {
default = pkgs.stdenvNoCC.mkDerivation rec {
pname = "voidcruiser";
version = "1.3";
src = ./.;
buildInputs = [ pkgs.hugo ];
buildPhase = ''
hugo
'';
installPhase = ''
mkdir -p $out/share/
cp -r public $out/share/${pname}
'';
};
};
});
}