2022-07-16 08:45:27 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, desktop-file-utils
|
|
|
|
, gjs
|
|
|
|
, appstream-glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, libadwaita
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, glib
|
|
|
|
, libportal
|
|
|
|
}:
|
2022-01-01 12:13:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "junction";
|
2022-02-02 04:25:52 +00:00
|
|
|
version = "1.5.0";
|
2022-01-01 12:13:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sonnyp";
|
|
|
|
repo = "Junction";
|
|
|
|
rev = "v${version}";
|
2022-02-02 04:25:52 +00:00
|
|
|
sha256 = "sha256-jS4SHh1BB8jk/4EP070X44C4n3GjyCz8ozgK8v5lbqc=";
|
2022-01-01 12:13:48 +00:00
|
|
|
};
|
|
|
|
|
2022-03-28 00:18:15 +00:00
|
|
|
nativeBuildInputs = [ meson ninja wrapGAppsHook4 desktop-file-utils ];
|
2022-01-01 12:13:48 +00:00
|
|
|
|
2022-02-02 04:25:52 +00:00
|
|
|
buildInputs = [ gsettings-desktop-schemas ];
|
|
|
|
|
2022-03-28 00:18:15 +00:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[ appstream-glib gjs gobject-introspection libadwaita glib libportal ];
|
2022-01-19 01:56:17 +00:00
|
|
|
|
2022-01-01 12:13:48 +00:00
|
|
|
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";
|
2022-03-27 03:49:26 +00:00
|
|
|
license = licenses.gpl3Only;
|
2022-01-19 01:56:17 +00:00
|
|
|
mainProgram = "re.sonny.Junction";
|
2022-01-01 12:13:48 +00:00
|
|
|
};
|
|
|
|
}
|