2023-08-07 07:40:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, gobject-introspection
|
|
|
|
, gjs
|
|
|
|
, gtk3
|
|
|
|
, libpulseaudio
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "ags";
|
2023-09-01 11:29:28 +00:00
|
|
|
version = "unstable-2023-09-01";
|
2023-08-07 07:40:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Aylur";
|
|
|
|
repo = "ags";
|
2023-09-01 11:29:28 +00:00
|
|
|
rev = "3d2171c850112ca37730fe6a8ed7c67192876dfc";
|
|
|
|
hash = "sha256-WqCYukpjt0QNMDI9/K6PLw34R9OSBTMWIQD5LqeIsw8=";
|
2023-08-07 07:40:24 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2023-09-01 11:29:28 +00:00
|
|
|
npmDepsHash = "sha256-uNdmlQIwXoO8Ls0qjJnwRGqpfiJK1PajAvoiHfJXcxg=";
|
2023-08-21 14:04:07 +00:00
|
|
|
patches = [ ./lib-path.patch ];
|
2023-08-07 07:40:24 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
|
|
|
gjs
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gjs
|
|
|
|
gtk3
|
|
|
|
libpulseaudio
|
|
|
|
];
|
|
|
|
|
|
|
|
# TODO: I have no idea how to properly make use of the binaries from
|
|
|
|
# node_modules folder, pls fix later (or is this the most Nix-idiomatic way of
|
|
|
|
# doing this?). :(
|
|
|
|
preConfigure = ''
|
|
|
|
addToSearchPath PATH $PWD/node_modules/.bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Aylur/ags";
|
|
|
|
description = "A EWW-inspired widget system as a GJS library";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ foo-dogsquared ];
|
2023-08-18 09:22:26 +00:00
|
|
|
platforms = platforms.linux;
|
2023-08-07 07:40:24 +00:00
|
|
|
};
|
|
|
|
}
|