mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
37 lines
896 B
Nix
37 lines
896 B
Nix
{ 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;
|
|
};
|
|
}
|