nixos-config/pkgs/junction.nix

46 lines
982 B
Nix
Raw Normal View History

{ 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";
license = licenses.gpl3Only;
2022-01-19 01:56:17 +00:00
mainProgram = "re.sonny.Junction";
2022-01-01 12:13:48 +00:00
};
}