earne.link landing page + docs https://earne.link
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
753 B

{
pkgs ? import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/860b56be91fb874d48e23a950815969a7b832fbc.tar.gz";}
) {}
}:
with pkgs;
let
hugo-archie-theme = runCommand "hugo-archie-theme" {
pinned = builtins.fetchGit {
url = "https://github.com/athul/archie";
ref = "refs/heads/master";
rev = "5321e4817fbed7cf57de9171f994f8720cbcf411";
};
patches = [];
preferLocalBuild = true;
}
''
cp -r $pinned $out
chmod -R u+w $out
for p in $patches; do
echo "Applying patch $p"
patch -d $out -p1 < "$p"
done
'';
in
mkShell {
buildInputs = [
gnumake
hugo
];
shellHook = ''
mkdir -p themes
ln -snf "${hugo-archie-theme}" themes/archie
'';
# HUGO_ENV = "production";
}