Commit 9ba420f4 authored by Armel Cloarec's avatar Armel Cloarec
Browse files

phosh: 0.51.0 -> 0.54.0

parent 70a9cd66
Loading
Loading
Loading
Loading
+23 −5
Original line number Diff line number Diff line
@@ -40,6 +40,10 @@
  nixosTests,
  gmobile,
  appstream,
  qrcodegen,
  gobject-introspection,
  docutils,
  gi-docgen,
}:

let
@@ -51,6 +55,8 @@ let
    repo = "libcall-ui";
    tag = "v0.1.5";
    hash = "sha256-4lSTwSRZditK51N/4s3tmIOgffe5+WyKxVq2IGqWRn4=";
    # Workaround for https://github.com/NixOS/nixpkgs/issues/485701
    forceFetchGit = true;
  };

  # Derived from subprojects/gvc.wrap
@@ -58,13 +64,15 @@ let
    domain = "gitlab.gnome.org";
    owner = "GNOME";
    repo = "libgnome-volume-control";
    rev = "5f9768a2eac29c1ed56f1fbb449a77a3523683b6";
    hash = "sha256-gdgTnxzH8BeYQAsvv++Yq/8wHi7ISk2LTBfU8hk12NM=";
    rev = "d2442f455844e5292cb4a74ffc66ecc8d7595a9f";
    hash = "sha256-10n441b7m/mvQRdrmEsxGxqjKUWzjGvnzJy256NZN5s=";
    # Workaround for https://github.com/NixOS/nixpkgs/issues/485701
    forceFetchGit = true;
  };
in
stdenv.mkDerivation (finalAttrs: {
  pname = "phosh";
  version = "0.51.0";
  version = "0.54.0";

  src = fetchFromGitLab {
    domain = "gitlab.gnome.org";
@@ -72,7 +80,9 @@ stdenv.mkDerivation (finalAttrs: {
    owner = "Phosh";
    repo = "phosh";
    tag = "v${finalAttrs.version}";
    hash = "sha256-bM1eKa5/aBjAHOFYyqjs6pLmr3R/WoK3590yGiLVNM4=";
    hash = "sha256-gByZRyUe17JY5imgtRdubJl1VH1JxlzmDQkHOtEIvj8=";
    # Workaround for https://github.com/NixOS/nixpkgs/issues/485701
    forceFetchGit = true;
  };

  nativeBuildInputs = [
@@ -83,6 +93,8 @@ stdenv.mkDerivation (finalAttrs: {
    python3
    wayland-scanner
    wrapGAppsHook4
    docutils
    gi-docgen
  ];

  buildInputs = [
@@ -111,6 +123,8 @@ stdenv.mkDerivation (finalAttrs: {
    wayland
    feedbackd
    appstream
    qrcodegen
    gobject-introspection
  ];

  nativeCheckInputs = [
@@ -131,6 +145,10 @@ stdenv.mkDerivation (finalAttrs: {
    # Save some time building if tests are disabled
    "-Dtests=${lib.boolToString finalAttrs.finalPackage.doCheck}"
    "-Dc_args=-I${glib.dev}/include/gio-unix-2.0/"
    "-Dsearchd=true"
    "-Dbindings-lib=true"
    "-Dgtk_doc=true"
    "-Dman=true"
  ];

  checkPhase = ''
@@ -157,7 +175,7 @@ stdenv.mkDerivation (finalAttrs: {
  };

  meta = {
    description = "Pure Wayland shell prototype for GNOME on mobile devices";
    description = "Pure Wayland shell for mobile devices";
    homepage = "https://gitlab.gnome.org/World/Phosh/phosh";
    changelog = "https://gitlab.gnome.org/World/Phosh/phosh/-/blob/v${finalAttrs.version}/debian/changelog";
    license = lib.licenses.gpl3Plus;