nixpkgs: move to unstable

This commit is contained in:
2024-10-09 21:37:58 -04:00
parent 999ea58008
commit 14d3f73f27
4 changed files with 13 additions and 28 deletions

View File

@@ -5,7 +5,7 @@
extra-experimental-features = "nix-command flakes";
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # TODO 24.11
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
@@ -23,31 +23,15 @@
packages = devDeps;
};
defaultPackage = pkgs.stdenv.mkDerivation {
defaultPackage = pkgs.compressDrvWeb (pkgs.stdenv.mkDerivation {
pname = "jakstys.lt";
version = "1.0.0";
src = pkgs.lib.cleanSource self;
buildInputs = [pkgs.hugo];
buildPhase = ''
${pkgs.hugo}/bin/hugo --cleanDestinationDir --printPathWarnings --panicOnWarning --log
find public \
-name '*.html' -or \
-name '*.xml' -or \
-name '*.txt' -or \
-name '*.css' -or \
-name '*.map' -or \
-name '*.pdf' | \
${pkgs.parallel}/bin/parallel --eta \
"${pkgs.zopfli}/bin/zopfli {} && ${pkgs.brotli}/bin/brotli {}"
'';
installPhase = ''
mv public $out
'';
};
buildInputs = devDeps;
buildPhase = "hugo --cleanDestinationDir --printPathWarnings --panicOnWarning";
installPhase = "mv public $out";
}) {};
formatter = pkgs.alejandra;
});