build: init static site at 0.0.1

This commit is contained in:
Mohammad Rafiq 2025-06-23 19:30:28 +08:00
commit fc489e80f0
No known key found for this signature in database
6 changed files with 87 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
result

12
default.nix Normal file
View file

@ -0,0 +1,12 @@
{ stdenv, ... }:
let
name = "rrv.sh";
version = "0.0.1";
in
stdenv.mkDerivation {
inherit name version;
src = ./src;
installPhase = ''
cp -r . $out
'';
}

43
flake.lock generated Normal file
View file

@ -0,0 +1,43 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1750506804,
"narHash": "sha256-VLFNc4egNjovYVxDGyBYTrvVCgDYgENp5bVi9fPTDYc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4206c4cb56751df534751b058295ea61357bbbaa",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"systems": "systems"
}
},
"systems": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.systems.url = "github:nix-systems/default-linux";
outputs =
inputs:
let
inherit (inputs.nixpkgs) lib legacyPackages;
forEachSystem = lib.genAttrs (import inputs.systems);
in
{
packages = forEachSystem (
system:
let
pkgs = legacyPackages.${system};
in
{
default = pkgs.callPackage ./default.nix { };
}
);
};
}

BIN
src/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

10
src/index.html Normal file
View file

@ -0,0 +1,10 @@
<html>
<head>
<meta charset="utf-8">
<title>rrv.sh</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<h1>hi</h1>
</body>
</html>