change flake output
This commit is contained in:
parent
c2f3415bea
commit
d672867ffd
2 changed files with 3 additions and 9 deletions
|
|
@ -1,28 +1,22 @@
|
|||
{
|
||||
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
|
||||
{
|
||||
|
||||
# Package
|
||||
packages.socialize =
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "socialize";
|
||||
src = self;
|
||||
installPhase = ''
|
||||
install -m 444 -D index.html $out/var/www/socialize/index.html
|
||||
install -m 444 -D index.html $out/index.html
|
||||
'';
|
||||
};
|
||||
defaultPackage = self.packages.${system}.socialize;
|
||||
}
|
||||
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue