nixos-config/pkgs/ags/default.nix

57 lines
1.1 KiB
Nix
Raw Normal View History

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-08-21 14:03:33 +00:00
version = "unstable-2023-08-21";
2023-08-07 07:40:24 +00:00
src = fetchFromGitHub {
owner = "Aylur";
repo = "ags";
2023-08-21 14:03:33 +00:00
rev = "2a875d4813c52a1a97aab31fccaead74e4e46fea";
hash = "sha256-zYvjFeKSDD6MM2j0UErsx6v43ikQHPFUklh9LnfGpUs=";
2023-08-07 07:40:24 +00:00
fetchSubmodules = true;
};
2023-08-21 14:03:33 +00:00
npmDepsHash = "sha256-9EOpgm3Hg5MO9JIRNBgqmAA2Pf1QxgU1QGo+VVa1WjM=";
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 ];
platforms = platforms.linux;
2023-08-07 07:40:24 +00:00
};
}