22 lines
617 B
Nix
22 lines
617 B
Nix
{
|
|
description = "socialize web page";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem
|
|
(system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
packages.socialize =
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "socialize";
|
|
src = self;
|
|
installPhase = ''
|
|
install -m 444 -D index.html $out/index.html
|
|
'';
|
|
};
|
|
defaultPackage = self.packages.${system}.socialize;
|
|
}
|
|
);
|
|
}
|