summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--default.nix1
-rw-r--r--pkgs/xdg-desktop-portal-wlr/default.nix33
-rw-r--r--pkgs/xdg-desktop-portal-wlr/metadata.nix5
-rwxr-xr-xupdate.sh3
5 files changed, 44 insertions, 1 deletions
diff --git a/README.md b/README.md
index 739ae18..0143897 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,7 @@ Packages from this overlay are regularly updated and built against `nixos-unstab
| nixpkgs/nixos-unstable | [2019-03-06 13:31](https://github.com/nixos/nixpkgs-channels/commits/5d3fd3674a66c5b1ada63e2eace140519849c967) |
| nixpkgs/nixpkgs-unstable | [2019-03-05 12:34](https://github.com/nixos/nixpkgs-channels/commits/b36dc66bfea6b0a733cf13bed85d80462d39c736) |
| pkgs/wlroots | [2019-03-12 14:16](https://github.com/swaywm/wlroots/commits/408eca7dfa12eda0f1b0ec6050e99ee2e6a8f2b4) |
+| pkgs/xdg-desktop-portal-wlr | [2019-02-12 12:09](https://github.com/emersion/xdg-desktop-portal-wlr/commits/74ee43cf37e716d0119f441be96e2b3fc9838797) |
| pkgs/sway | [2019-03-14 04:04](https://github.com/swaywm/sway/commits/d64e8ba9469f4fa0ff693a22c88c1afa687c4c6c) |
| pkgs/swayidle | [2019-02-16 16:43](https://github.com/swaywm/swayidle/commits/3e392e31c0684854a9a145cda1bd9a44c99ef24d) |
| pkgs/swaylock | [2019-02-12 22:27](https://github.com/swaywm/swaylock/commits/6b3be42264b9eaa8524ea4f0d93fbd1d82495d90) |
@@ -75,6 +76,8 @@ in
oguri # animated background utility
kanshi # dynamic display configuration helper
redshift-wayland # patched to work with wayland gamma protocol
+
+ xdg-desktop-portal-wlr # xdg-desktop-portal backend for wlroots
];
environment.systemPackages = with pkgs; [
# other compositors/window-managers
diff --git a/default.nix b/default.nix
index 09fcdca..10d729d 100644
--- a/default.nix
+++ b/default.nix
@@ -7,6 +7,7 @@ waylandPkgs = rec {
# wlroots-related
scdoc = pkgs.callPackage ./pkgs/scdoc {};
wlroots = pkgs.callPackage ./pkgs/wlroots {};
+ xdg-desktop-portal-wlr = pkgs.callPackage ./pkgs/xdg-desktop-portal-wlr {};
sway = pkgs.callPackage ./pkgs/sway {};
swayidle = pkgs.callPackage ./pkgs/swayidle {};
swaylock = pkgs.callPackage ./pkgs/swaylock {};
diff --git a/pkgs/xdg-desktop-portal-wlr/default.nix b/pkgs/xdg-desktop-portal-wlr/default.nix
new file mode 100644
index 0000000..e82577a
--- /dev/null
+++ b/pkgs/xdg-desktop-portal-wlr/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchFromGitHub
+, meson, ninja, pkgconfig
+, systemd, wayland, wayland-protocols
+}:
+
+let
+ metadata = import ./metadata.nix;
+in
+stdenv.mkDerivation rec {
+ name = "xdg-desktop-portal-wlr-${version}";
+ version = metadata.rev;
+
+ src = fetchFromGitHub {
+ owner = "emersion";
+ repo = "xdg-desktop-portal-wlr";
+ rev = version;
+ sha256 = metadata.sha256;
+ };
+
+ nativeBuildInputs = [ pkgconfig meson ninja ];
+ buildInputs = [ systemd wayland wayland-protocols ];
+ mesonFlags = [ "-Dauto_features=enabled" ];
+
+ enableParallelBuilding = true;
+
+ meta = with stdenv.lib; {
+ description = "xdg-desktop-portal backend for wlroots";
+ homepage = "https://github.com/emersion/xdg-desktop-portal-wlr";
+ license = licenses.mit;
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ colemickens ];
+ };
+}
diff --git a/pkgs/xdg-desktop-portal-wlr/metadata.nix b/pkgs/xdg-desktop-portal-wlr/metadata.nix
new file mode 100644
index 0000000..152cf0b
--- /dev/null
+++ b/pkgs/xdg-desktop-portal-wlr/metadata.nix
@@ -0,0 +1,5 @@
+{
+ rev = "74ee43cf37e716d0119f441be96e2b3fc9838797";
+ sha256 = "1d2k5jhqzhd36m7f3d03ik7ipiil1zhbniiv3096mq7js1lyvrhs";
+ revdate = "2019-02-12T12:09:21Z";
+}
diff --git a/update.sh b/update.sh
index ff14cb4..65248e5 100755
--- a/update.sh
+++ b/update.sh
@@ -27,7 +27,7 @@ function update() {
fi
commitdate="$(nix eval -f "./${attr}/metadata.nix" revdate --raw)"
- d="$(date '+%Y-%m-%d %H:%M' --date="${commitdate}")"
+ d="$(date -u '+%Y-%m-%d %H:%M' --date="${commitdate}")"
txt="| ${attr} | [${d}](https://github.com/${owner}/${repo}/commits/${rev}) |"
pkgentries=("${pkgentries[@]}" "${txt}")
}
@@ -38,6 +38,7 @@ update "nixpkgs/nixos-unstable" "nixos" "nixpkgs-channels" "nixos-unstable"
update "nixpkgs/nixpkgs-unstable" "nixos" "nixpkgs-channels" "nixpkgs-unstable"
update "pkgs/wlroots" "swaywm" "wlroots" "master"
+update "pkgs/xdg-desktop-portal-wlr" "emersion" "xdg-desktop-portal-wlr" "master"
update "pkgs/sway" "swaywm" "sway" "master"
update "pkgs/swayidle" "swaywm" "swayidle" "master"
update "pkgs/swaylock" "swaywm" "swaylock" "master"