deadd-notification-center: 1.7.2 -> 1.7.3
This commit is contained in:
parent
d1bfbb992d
commit
90872de6c4
|
@ -1,44 +1,46 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
, fetchurl
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
|
, wrapGAppsHook
|
||||||
|
, hicolor-icon-theme
|
||||||
, gtk3
|
, gtk3
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
, libxml2
|
, libxml2
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
version = "1.7.2";
|
|
||||||
|
|
||||||
dbusService = fetchurl {
|
|
||||||
url = "https://github.com/phuhl/linux_notification_center/raw/${version}/com.ph-uhl.deadd.notification.service.in";
|
|
||||||
sha256 = "0jvmi1c98hm8x1x7kw9ws0nbf4y56yy44c3bqm6rjj4lrm89l83s";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
inherit version;
|
|
||||||
pname = "deadd-notification-center";
|
pname = "deadd-notification-center";
|
||||||
|
version = "1.7.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/phuhl/linux_notification_center/releases/download/${version}/${pname}";
|
owner = "phuhl";
|
||||||
sha256 = "13f15slkjiw2n5dnqj13dprhqm3nf1k11jqaqda379yhgygyp9zm";
|
repo = "linux_notification_center";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "QaOLrtlhQyhMOirk6JO1yMGRrgycHmF9FAdKNbN2TRk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = [
|
||||||
|
autoPatchelfHook
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk3
|
gtk3
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
libxml2
|
libxml2
|
||||||
|
hicolor-icon-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin $out/share/dbus-1/services
|
mkdir -p $out/bin $out/share/dbus-1/services
|
||||||
cp $src $out/bin/deadd-notification-center
|
|
||||||
chmod +x $out/bin/deadd-notification-center
|
|
||||||
|
|
||||||
sed "s|##PREFIX##|$out|g" ${dbusService} > $out/share/dbus-1/services/com.ph-uhl.deadd.notification.service
|
cp $src/.out/${pname} $out/bin/
|
||||||
|
chmod +x $out/bin/${pname}
|
||||||
|
|
||||||
|
sed "s|##PREFIX##|$out|g" $src/${pname}.service.in > \
|
||||||
|
$out/share/dbus-1/services/com.ph-uhl.deadd.notification.service
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue