mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
pantheon.switchboard-plug-datetime: 2.1.9 -> 2.2.0
This commit is contained in:
parent
b7a302ef48
commit
0c60031997
@ -1,5 +1,6 @@
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, nix-update-script
|
||||
, pantheon
|
||||
, meson
|
||||
@ -17,13 +18,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "switchboard-plug-datetime";
|
||||
version = "2.1.9";
|
||||
version = "2.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "elementary";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-qgsU3NXqH7ryUah7rEnUrsbecV4AsOo4QfgTcWc5bc4=";
|
||||
sha256 = "10rqhxsqbl1xnz5n84d7m39c3vb71k153989xvyc55djia1wjx96";
|
||||
};
|
||||
|
||||
passthru = {
|
||||
@ -32,6 +33,19 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
tzdata = tzdata;
|
||||
})
|
||||
# Upstream code not respecting our localedir
|
||||
# https://github.com/elementary/switchboard-plug-datetime/pull/100
|
||||
(fetchpatch {
|
||||
url = "https://github.com/elementary/switchboard-plug-datetime/commit/a90639ed4f185f50d4ae448cd9503203dc24b3f4.patch";
|
||||
sha256 = "0dz0s02ccnds62dqil44k652pc5icka2rfhcx0a5bj1wi5sifnp7";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
libxml2
|
||||
meson
|
||||
|
@ -0,0 +1,15 @@
|
||||
diff --git a/src/Parser.vala b/src/Parser.vala
|
||||
index 7c7b82d..2c3a061 100644
|
||||
--- a/src/Parser.vala
|
||||
+++ b/src/Parser.vala
|
||||
@@ -28,9 +28,9 @@ public class DateTime.Parser : GLib.Object {
|
||||
return parser;
|
||||
}
|
||||
private Parser () {
|
||||
- var file = File.new_for_path ("/usr/share/zoneinfo/zone.tab");
|
||||
+ var file = File.new_for_path ("@tzdata@/share/zoneinfo/zone.tab");
|
||||
if (!file.query_exists ()) {
|
||||
- critical ("/usr/share/zoneinfo/zone.tab doesn't exist !");
|
||||
+ critical ("@tzdata@/share/zoneinfo/zone.tab doesn't exist !");
|
||||
return;
|
||||
}
|
Loading…
Reference in New Issue
Block a user