snowfallorg / lib

Unified configuration for systems, packages, modules, shells, templates, and more with Nix Flakes.
https://snowfall.org
Other
430 stars 39 forks source link

Overriding package version from nixpkgs #111

Closed TafkaMax closed 5 months ago

TafkaMax commented 5 months ago

I want to change the version of this package: https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/fl/fluent-gtk-theme/package.nix

I have previously used overlays, but I can not change the 'version' via that way.

I now copied the content of the package.nix under

packages/fluent-gtk-theme/default.nix - as specified here https://snowfall.org/guides/lib/packages/

But I can not get it to work as intended. It should error ask me for the new SHA256 hash, but it doesn't.

What am I doing wrong? I have installed other packages this way aswell.

Is there a way to change the version via overlays aswell, or just create a simplified package so I don't need to copy all the file over from nixpkgs?


grep -r 'fluent-gtk-theme'   
modules/nixos/desktop/addons/gtk/default.nix:      pkg = mkOpt package pkgs.nixos-snowfall.fluent-gtk-theme "The package to use for the theme.";
packages/fluent-gtk-theme/default.nix:  pname = "fluent-gtk-theme";
packages/fluent-gtk-theme/default.nix:      repo = "fluent-gtk-theme";
 grep -r 'pkgs.nixos-snowfall'
modules/nixos/suites/common/default.nix:      pkgs.nixos-snowfall.list-iommu
modules/nixos/suites/common-slim/default.nix:      pkgs.nixos-snowfall.list-iommu
modules/nixos/desktop/addons/firefox-cascade-theme/default.nix:        @import "${pkgs.nixos-snowfall.firefox-cascade-theme}/chrome/userChrome.css";
modules/nixos/desktop/addons/firefox-mod-blur/default.nix:        @import "${pkgs.nixos-snowfall.firefox-mod-blur}/userChrome.css";
modules/nixos/desktop/addons/firefox-mod-blur/default.nix:      #  ".mozilla/firefox/${config.nixos-snowfall.user.name}/chrome/image/" = "${pkgs.nixos-snowfall.firefox-mod-blur}/image/";
modules/nixos/desktop/addons/firefox-mod-blur/default.nix:      #  ".mozilla/firefox/${config.nixos-snowfall.user.name}/chrome/acrylic_micaforeveryone.css" = "${pkgs.nixos-snowfall.firefox-mod-blur}/EXTRA THEMES/MicaForEveryone Files/acrylic_micaforeveryone.css";
modules/nixos/desktop/addons/firefox-mod-blur/default.nix:              @import "${pkgs.nixos-snowfall.firefox-mod-blur}/userContent.css";
modules/nixos/desktop/addons/firefox-nordic-theme/default.nix:        "${pkgs.nixos-snowfall.firefox-nordic-theme}/configuration/user.js";
modules/nixos/desktop/addons/firefox-nordic-theme/default.nix:        @import "${pkgs.nixos-snowfall.firefox-nordic-theme}/userChrome.css";
modules/nixos/desktop/addons/gtk/default.nix:      pkg = mkOpt package pkgs.nixos-snowfall.fluent-gtk-theme "The package to use for the theme.";
modules/nixos/desktop/addons/wallpapers/default.nix:  inherit (pkgs.nixos-snowfall) wallpapers;
modules/nixos/desktop/gnome/default.nix:      light = mkOpt (oneOf [ str package ]) pkgs.nixos-snowfall.wallpapers.panoramic-view-light "The light wallpaper to use.";
modules/nixos/desktop/gnome/default.nix:      dark = mkOpt (oneOf [ str package ]) pkgs.nixos-snowfall.wallpapers.panoramic-view-dark "The dark wallpaper to use.";
TafkaMax commented 5 months ago

NVM it seems to work.