mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
adwcustomizer: update libadwaita to unreleased version
This commit is contained in:
parent
faf11bb6ee
commit
fd44461f02
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, wrapGAppsHook4, meson, ninja, pkg-config, glib, desktop-file-utils, gettext, blueprint-compiler, python3Packages, appstream-glib, gtk4, libadwaita }:
|
{ stdenv, lib, fetchFromGitHub, wrapGAppsHook4, meson, ninja, pkg-config, glib, desktop-file-utils, gettext, blueprint-compiler, python3Packages, appstream-glib, gtk4, libadwaita, libportal, libportal-gtk4 }:
|
||||||
|
|
||||||
# Not all parts of the application works with the current nixpkgs version of
|
# Not all parts of the application works with the current nixpkgs version of
|
||||||
# libadwaita.
|
# libadwaita.
|
||||||
@ -9,8 +9,8 @@ python3Packages.buildPythonApplication rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ArtyIF";
|
owner = "ArtyIF";
|
||||||
repo = "AdwCustomizer";
|
repo = "AdwCustomizer";
|
||||||
rev = "718f2490c95de60e8571b1a9d92af78919c14de1";
|
rev = "5a6fa1b2ba63a5a8ac3861f28882c4e62f62b10b";
|
||||||
sha256 = "sha256-rMaWIJBQ+HC1Gs5xCRyuOCvB2XcTFB2q194bfK5Q48Q=";
|
sha256 = "sha256-KwvAlcRfilu/rC6e145xMC/6I7OXsZYWlYd0GNZoYDs";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -32,10 +32,13 @@ python3Packages.buildPythonApplication rec {
|
|||||||
blueprint-compiler
|
blueprint-compiler
|
||||||
gtk4
|
gtk4
|
||||||
libadwaita
|
libadwaita
|
||||||
|
libportal
|
||||||
|
libportal-gtk4
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
pygobject3
|
pygobject3
|
||||||
|
anyascii
|
||||||
];
|
];
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
diff --git a/src/main.py b/src/main.py
|
diff --git a/src/main.py b/src/main.py
|
||||||
index b73c749..97e2b24 100644
|
index 8aadfe0..d2c5d4c 100644
|
||||||
--- a/src/main.py
|
--- a/src/main.py
|
||||||
+++ b/src/main.py
|
+++ b/src/main.py
|
||||||
@@ -295,5 +295,10 @@ class AdwcustomizerApplication(Adw.Application):
|
@@ -369,5 +369,10 @@ class AdwcustomizerApplication(Adw.Application):
|
||||||
|
|
||||||
def main(version):
|
def main(version):
|
||||||
"""The application's entry point."""
|
"""The application's entry point."""
|
||||||
|
- app = AdwcustomizerApplication(version)
|
||||||
+ if not os.getenv("XDG_CONFIG_HOME"):
|
+ if not os.getenv("XDG_CONFIG_HOME"):
|
||||||
+ os.environ["XDG_CONFIG_HOME"] = os.path.expanduser("~/.config")
|
+ os.environ["XDG_CONFIG_HOME"] = os.path.expanduser("~/.config")
|
||||||
+ app_config = os.path.join(os.environ["XDG_CONFIG_HOME"], "adwcustomizer")
|
+ app_config = os.path.join(os.environ["XDG_CONFIG_HOME"], "adwcustomizer")
|
||||||
+ os.makedirs(app_config, exist_ok=True)
|
+ os.makedirs(app_config, exist_ok=True)
|
||||||
+
|
+
|
||||||
app = AdwcustomizerApplication()
|
+ app = AdwcustomizerApplication(version)
|
||||||
return app.run(sys.argv)
|
return app.run(sys.argv)
|
||||||
|
@ -6,7 +6,7 @@ let
|
|||||||
packages = self:
|
packages = self:
|
||||||
let callPackage = newScope self;
|
let callPackage = newScope self;
|
||||||
in {
|
in {
|
||||||
adwcustomizer = callPackage ./adwcustomizer { };
|
adwcustomizer = callPackage ./adwcustomizer { libadwaita = libadwaita-latest; };
|
||||||
artem = callPackage ./artem.nix { };
|
artem = callPackage ./artem.nix { };
|
||||||
auto-editor = callPackage ./auto-editor.nix { };
|
auto-editor = callPackage ./auto-editor.nix { };
|
||||||
awesome-cli = callPackage ./awesome-cli { };
|
awesome-cli = callPackage ./awesome-cli { };
|
||||||
@ -29,6 +29,16 @@ let
|
|||||||
guile-hall = callPackage ./guile-hall.nix { };
|
guile-hall = callPackage ./guile-hall.nix { };
|
||||||
hush-shell = callPackage ./hush-shell.nix { };
|
hush-shell = callPackage ./hush-shell.nix { };
|
||||||
ictree = callPackage ./ictree.nix { };
|
ictree = callPackage ./ictree.nix { };
|
||||||
|
libadwaita-latest = libadwaita.overrideAttrs (super: self: {
|
||||||
|
version = "2022-07-27";
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
domain = "gitlab.gnome.org";
|
||||||
|
owner = "GNOME";
|
||||||
|
repo = "libadwaita";
|
||||||
|
rev = "68bf0fbcfb9134bbc13345d16243ff15b1989693";
|
||||||
|
hash = "sha256-HWtDpOsHMR2kG5nr6pfznhDoyRpGihLCA7hsT99QqdA=";
|
||||||
|
};
|
||||||
|
});
|
||||||
libcs50 = callPackage ./libcs50.nix { };
|
libcs50 = callPackage ./libcs50.nix { };
|
||||||
license-cli = callPackage ./license-cli { };
|
license-cli = callPackage ./license-cli { };
|
||||||
moac = callPackage ./moac.nix { };
|
moac = callPackage ./moac.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user