uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
71
pkgs/desktops/pantheon/third-party/pantheon-tweaks/default.nix
vendored
Normal file
71
pkgs/desktops/pantheon/third-party/pantheon-tweaks/default.nix
vendored
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, nix-update-script
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, python3
|
||||
, vala
|
||||
, gtk3
|
||||
, libgee
|
||||
, pantheon
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pantheon-tweaks";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pantheon-tweaks";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-L/3PrkfWOGYtqeH/DajGEGCsF5yYnWuESxUTfROSHQ4=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./fix-paths.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
python3
|
||||
vala
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
libgee
|
||||
] ++ (with pantheon; [
|
||||
elementary-files # settings schemas
|
||||
elementary-terminal # settings schemas
|
||||
granite
|
||||
switchboard
|
||||
]);
|
||||
|
||||
postPatch = ''
|
||||
chmod +x meson/post_install.py
|
||||
patchShebangs meson/post_install.py
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Unofficial system settings panel for Pantheon";
|
||||
longDescription = ''
|
||||
Unofficial system settings panel for Pantheon
|
||||
that lets you easily and safely customise your desktop's appearance.
|
||||
Use programs.pantheon-tweaks.enable to add this to your switchboard.
|
||||
'';
|
||||
homepage = "https://github.com/pantheon-tweaks/pantheon-tweaks";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = teams.pantheon.members;
|
||||
};
|
||||
}
|
||||
13
pkgs/desktops/pantheon/third-party/pantheon-tweaks/fix-paths.patch
vendored
Normal file
13
pkgs/desktops/pantheon/third-party/pantheon-tweaks/fix-paths.patch
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/Settings/ThemeSettings.vala b/src/Settings/ThemeSettings.vala
|
||||
index 589121b..8e9c81e 100644
|
||||
--- a/src/Settings/ThemeSettings.vala
|
||||
+++ b/src/Settings/ThemeSettings.vala
|
||||
@@ -29,7 +29,7 @@ public class PantheonTweaks.ThemeSettings {
|
||||
var themes = new Gee.ArrayList<string> ();
|
||||
|
||||
string[] dirs = {
|
||||
- "/usr/share/" + path + "/",
|
||||
+ "/run/current-system/sw/share/" + path + "/",
|
||||
Environment.get_home_dir () + "/." + path + "/",
|
||||
Environment.get_home_dir () + "/.local/share/" + path + "/"};
|
||||
|
||||
62
pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/default.nix
vendored
Normal file
62
pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/default.nix
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, unstableGitUpdater
|
||||
, substituteAll
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, vala
|
||||
, gtk3
|
||||
, libindicator-gtk3
|
||||
, pantheon
|
||||
, indicator-application-gtk3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wingpanel-indicator-ayatana";
|
||||
version = "unstable-2021-12-18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Lafydev";
|
||||
repo = pname;
|
||||
rev = "5749f753ca64ce58232a46b9045949b3f8219827";
|
||||
sha256 = "sha256-kuEVw62IDTyC3hRRcWv2RihPOohGqEt8YLr44SurwPM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Tells the indicator the path for libapplication.so
|
||||
(substituteAll {
|
||||
src = ./fix-libapplication-dir.patch;
|
||||
indicator_application = indicator-application-gtk3;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
vala
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
libindicator-gtk3
|
||||
pantheon.granite
|
||||
pantheon.wingpanel
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = unstableGitUpdater {
|
||||
url = "https://github.com/Lafydev/wingpanel-indicator-ayatana.git";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Ayatana Compatibility Indicator for Wingpanel";
|
||||
homepage = "https://github.com/Lafydev/wingpanel-indicator-ayatana";
|
||||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = teams.pantheon.members;
|
||||
};
|
||||
}
|
||||
13
pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/fix-libapplication-dir.patch
vendored
Normal file
13
pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/fix-libapplication-dir.patch
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/IndicatorFactory.vala b/src/IndicatorFactory.vala
|
||||
index 9411de0..632d83b 100644
|
||||
--- a/src/IndicatorFactory.vala
|
||||
+++ b/src/IndicatorFactory.vala
|
||||
@@ -24,7 +24,7 @@ public class AyatanaCompatibility.IndicatorFactory : Object, IndicatorLoader {
|
||||
public Gee.Collection<IndicatorIface> get_indicators () {
|
||||
if (indicators == null) {
|
||||
indicators = new Gee.LinkedList<IndicatorIface> ();
|
||||
- load_indicator (File.new_for_path (Constants.AYATANA_INDICATOR_DIR), "libapplication.so");
|
||||
+ load_indicator (File.new_for_path ("@indicator_application@/lib/indicators3/7/"), "libapplication.so");
|
||||
}
|
||||
|
||||
return indicators.read_only_view;
|
||||
Loading…
Add table
Add a link
Reference in a new issue