Unverified Commit 0144f850 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

gnomeExtensions.forge: package manually (#468438)

parents 50cf61c9 1db54da5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -805,6 +805,12 @@
    githubId = 1141462;
    name = "Vladyslav Pekker";
  };
  agustinmista = {
    email = "agustin@mista.me";
    github = "agustinmista";
    githubId = 5265348;
    name = "Agustin Mista";
  };
  agvantibo = {
    email = "apicalium@gmail.com";
    github = "agvantibo-again";
+54 −0
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  glib,
  lib,
  stdenv,
  ...
}:
let
  uuid = "forge@jmmaranan.com";
in
stdenv.mkDerivation {
  pname = "gnome-shell-extension-forge";
  version = "49.2-development";

  src = fetchFromGitHub {
    owner = "forge-ext";
    repo = "forge";
    rev = "701e7587e88fd51cc10e0f2fc5124ac61c82cf1c";
    hash = "sha256-yKBH4Hv4b0CUVubsfs8a8fg3nIuogvGp5DJT/HjBcns=";
  };

  nativeBuildInputs = [ glib ];

  buildPhase = ''
    runHook preBuild
    glib-compile-schemas --strict schemas
    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall
    mkdir -p $out/share/gnome-shell/extensions/
    cp -r -T . $out/share/gnome-shell/extensions/${uuid}
    # The makefile autogenerates a lib/prefs/metadata.js with a list of
    # developers. We can just hardcode an empty one to avoid having to read the
    # git history during the derivation.
    echo "export const developers = []" > \
      $out/share/gnome-shell/extensions/${uuid}/lib/prefs/metadata.js
    runHook postInstall
  '';

  passthru = {
    extensionPortalSlug = "forge";
    extensionUuid = uuid;
  };

  meta = {
    description = "Tiling and window manager for GNOME";
    homepage = "https://extensions.gnome.org/extension/4481/forge/";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ agustinmista ];
    platforms = lib.platforms.linux;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  "clock-override@gnomeshell.kryogenix.org" = callPackage ./clock-override { };
  "drop-down-terminal@gs-extensions.zzrough.org" = callPackage ./drop-down-terminal { };
  "EasyScreenCast@iacopodeenosee.gmail.com" = callPackage ./EasyScreenCast { };
  "forge@jmmaranan.com" = callPackage ./forge { };
  "gsconnect@andyholmes.github.io" = callPackage ./gsconnect { };
  "guillotine@fopdoodle.net" = callPackage ./guillotine { };
  "impatience@gfxmonk.net" = callPackage ./impatience { };