From db9b8f62b87466a08f0d92df2677db9849ddd025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20Dami=C3=A1n=20Schonborn?= Date: Thu, 16 Feb 2023 17:27:35 -0300 Subject: [PATCH] budgie.budgie-desktop-view: init at 1.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Federico Damián Schonborn --- .../budgie/budgie-desktop-view/default.nix | 53 +++++++++++++++++++ pkgs/desktops/budgie/default.nix | 1 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/desktops/budgie/budgie-desktop-view/default.nix diff --git a/pkgs/desktops/budgie/budgie-desktop-view/default.nix b/pkgs/desktops/budgie/budgie-desktop-view/default.nix new file mode 100644 index 000000000000..7faf261747ca --- /dev/null +++ b/pkgs/desktops/budgie/budgie-desktop-view/default.nix @@ -0,0 +1,53 @@ +{ lib +, stdenv +, fetchFromGitHub +, desktop-file-utils +, glib +, gtk3 +, intltool +, meson +, ninja +, pkg-config +, vala +, wrapGAppsHook +}: + +stdenv.mkDerivation rec { + pname = "budgie-desktop-view"; + version = "1.2.1"; + + src = fetchFromGitHub { + owner = "BuddiesOfBudgie"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-USsySJuDov2oe9UXyzACBAyYIRLKSXOMXdia8Ix/8TE="; + }; + + nativeBuildInputs = [ + desktop-file-utils + intltool + meson + ninja + pkg-config + vala + wrapGAppsHook + ]; + + buildInputs = [ + glib + gtk3 + ]; + + preInstall = '' + substituteInPlace ../scripts/mesonPostInstall.sh --replace "update-desktop-database -q" "update-desktop-database $out/share/applications" + ''; + + meta = with lib; { + description = "The official Budgie desktop icons application/implementation"; + homepage = "https://github.com/BuddiesOfBudgie/budgie-desktop-view"; + mainProgram = "org.buddiesofbudgie.budgie-desktop-view"; + platforms = platforms.linux; + maintainers = [ maintainers.federicoschonborn ]; + license = licenses.asl20; + }; +} diff --git a/pkgs/desktops/budgie/default.nix b/pkgs/desktops/budgie/default.nix index 926784295fb5..e188af785ab3 100644 --- a/pkgs/desktops/budgie/default.nix +++ b/pkgs/desktops/budgie/default.nix @@ -2,5 +2,6 @@ lib.makeScope pkgs.newScope (self: with self; { budgie-desktop = callPackage ./budgie-desktop { }; + budgie-desktop-view = callPackage ./budgie-desktop-view { }; budgie-screensaver = callPackage ./budgie-screensaver { }; })