use papermod/master

This commit is contained in:
Paul-Nicolas Madelaine 2024-09-10 16:50:59 +02:00
parent d7dd5916d1
commit a2ce4a9ba7
3 changed files with 24 additions and 9 deletions

View file

@ -1,8 +1,7 @@
#!/usr/bin/env bash
version="v7.0"
rm -rf themes
mkdir themes
cd themes
curl -L "https://github.com/adityatelange/hugo-PaperMod/tarball/$version" | tar -zx
curl -L "https://github.com/adityatelange/hugo-papermod/tarball/master" | tar -zx
mv "$(ls)" papermod

View file

@ -33,10 +33,27 @@
"type": "github"
}
},
"papermod": {
"flake": false,
"locked": {
"lastModified": 1723905772,
"narHash": "sha256-iKKAAR5ipeimIgC137tbpkWlwIzNDAcPPKNLwdhW1CI=",
"owner": "adityatelange",
"repo": "hugo-papermod",
"rev": "58c4841c26325eaa788d9b13e65d5dfc95d9367c",
"type": "github"
},
"original": {
"owner": "adityatelange",
"repo": "hugo-papermod",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"papermod": "papermod"
}
},
"systems": {

View file

@ -2,6 +2,10 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
papermod = {
url = "github:adityatelange/hugo-papermod";
flake = false;
};
};
outputs =
@ -9,17 +13,12 @@
self,
nixpkgs,
flake-utils,
papermod,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
papermod = pkgs.fetchFromGitHub {
owner = "adityatelange";
repo = "hugo-PaperMod";
rev = "v7.0";
hash = "sha256-33EnCEvTxZYn31fxZkYJlQXvJsczXMVufSj6QJJHrLk=";
};
website = pkgs.stdenv.mkDerivation {
name = "website";
src = ./.;