Created
October 26, 2020 21:07
-
-
Save pinpox/cabd2d1f97ae833207fd7ddfeb88117d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@nixos:/etc/nixos]# nixos-rebuild switch | |
building Nix... | |
building the system configuration... | |
warning: dumping very large path (> 256 MiB); this may run out of memory | |
[root@nixos:/etc/nixos]# cat blog.nix | |
with import <nixpkgs> {}; | |
stdenv.mkDerivation rec { | |
name = "blog"; | |
# src = ./files/hugo-website; | |
src = builtins.fetchGit { | |
url = "ssh://gitea@git.pablo.tools/pablo/hugo-website.git"; | |
# sha256 = "0fy43d0nhbmpf3f8v302r7bhpyd3qk2dyjr2fnvwwdx2825an6cq"; | |
}; | |
buildInputs = [ hugo]; | |
buildPhase = "echo $src; exit 1"; | |
installPhase = "cp -R public/ \$out"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment