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 #!/usr/bin/env bash
version="v7.0"
rm -rf themes rm -rf themes
mkdir themes mkdir themes
cd 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 mv "$(ls)" papermod

View file

@ -33,10 +33,27 @@
"type": "github" "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": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"papermod": "papermod"
} }
}, },
"systems": { "systems": {

View file

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