diff --git a/pkgs/default.nix b/pkgs/default.nix index e6b6c6f9..432588a2 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -10,6 +10,7 @@ with pkgs; { callPackage ./gnome-shell-extension-desktop-cube.nix { }; gnome-shell-extension-fly-pie = callPackage ./gnome-shell-extension-fly-pie.nix { }; + junction = callPackage ./junction.nix { }; libcs50 = callPackage ./libcs50.nix { }; llama = callPackage ./llama.nix { }; neo = callPackage ./neo.nix { }; diff --git a/pkgs/junction.nix b/pkgs/junction.nix new file mode 100644 index 00000000..6ef60e16 --- /dev/null +++ b/pkgs/junction.nix @@ -0,0 +1,36 @@ +{ lib, stdenv, fetchFromGitHub, desktop-file-utils, gjs, appstream-glib +, gobject-introspection, gsettings-desktop-schemas, libadwaita, meson_0_60 +, ninja, wrapGAppsHook4 }: + +stdenv.mkDerivation rec { + pname = "junction"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "sonnyp"; + repo = "Junction"; + rev = "v${version}"; + sha256 = "sha256-lU6dGsX6jYYmwRz0z4V+4xTFAikUYCsszNVoyc7snwM="; + }; + + nativeBuildInputs = [ meson_0_60 ninja wrapGAppsHook4 ]; + + buildInputs = [ + libadwaita + gjs + gobject-introspection + appstream-glib + desktop-file-utils + gsettings-desktop-schemas + ]; + + preFixup = '' + substituteInPlace $out/bin/re.sonny.Junction --replace "#!/usr/bin/env -S gjs" "#!${gjs}/bin/gjs" + ''; + + meta = with lib; { + homepage = "https://github.com/sonnyp/Junction"; + description = "Application chooser"; + license = licenses.gpl3; + }; +}