nixos-config/pkgs/junction.nix

45 lines
1007 B
Nix
Raw Normal View History

2022-01-01 12:13:48 +00:00
{ lib, stdenv, fetchFromGitHub, desktop-file-utils, gjs, appstream-glib
2022-02-02 04:25:52 +00:00
, 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-01-19 01:56:17 +00:00
nativeBuildInputs = [
2022-02-02 04:25:52 +00:00
meson
2022-01-19 01:56:17 +00:00
ninja
wrapGAppsHook4
2022-01-01 12:13:48 +00:00
desktop-file-utils
];
2022-02-02 04:25:52 +00:00
buildInputs = [ gsettings-desktop-schemas ];
propagatedBuildInputs = [
appstream-glib
gjs
gobject-introspection
libadwaita
glib
libportal
2022-02-02 04:25:52 +00:00
];
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.gpl3;
2022-01-19 01:56:17 +00:00
mainProgram = "re.sonny.Junction";
2022-01-01 12:13:48 +00:00
};
}