mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gobject-introspection
|
|
, gjs
|
|
, gtk3
|
|
, libpulseaudio
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "ags";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Aylur";
|
|
repo = "ags";
|
|
rev = "v${version}";
|
|
hash = "sha256-maDUYMdB0xyl9ju1pFfqaczlKyBizbG5UkE4DQ2D67w=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
npmDepsHash = "sha256-e1YYtWiO/dN7w2s+En3+3gc98R/hM5pJnTK7kCCH8Mc=";
|
|
|
|
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;
|
|
};
|
|
}
|