nixpkgs: move to unstable
This commit is contained in:
28
flake.nix
28
flake.nix
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user