Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixos-homepage
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d98dc80e291a
Choose a base ref
...
head repository: NixOS/nixos-homepage
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 52c429da25ba
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Dec 23, 2020

  1. need to pass system

    garbas committed Dec 23, 2020
    Copy the full SHA
    52c429d View commit details
Showing with 3 additions and 2 deletions.
  1. +1 −1 flake.nix
  2. +2 −1 site-styles/default.nix
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@
checks."${system}".build = defaultPackage."${system}";

packages."${system}" = rec {
siteStyles = pkgs.callPackage ./site-styles { inherit nixos-common-styles; };
siteStyles = pkgs.callPackage ./site-styles { inherit nixos-common-styles system; };

homepage = pkgs.stdenv.mkDerivation {
name = "nixos-homepage-${self.lastModifiedDate}";
3 changes: 2 additions & 1 deletion site-styles/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ pkgs ? import <nixpkgs> {}
, nixos-common-styles
, system
}:
pkgs.stdenv.mkDerivation {
name = "nixos-homepage-styles";
@@ -16,7 +17,7 @@ pkgs.stdenv.mkDerivation {

buildPhase = ''
rm -rf common-styles
ln -sf ${nixos-common-styles.defaultPackage."${builtins.currentSystem}"} ./common-styles
ln -sf ${nixos-common-styles.defaultPackage."${system}"} ./common-styles
rm -rf assets
ln -sf ${nixos-common-styles.lib.memoizeAssets ./assets} ./assets