nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 desktop-file-utils,
6 gitUpdater,
7 gobject-introspection,
8 gst_all_1,
9 gtk4,
10 libadwaita,
11 meson,
12 ninja,
13 pkg-config,
14 vala,
15 wrapGAppsHook4,
16}:
17stdenv.mkDerivation (finalAttrs: {
18 pname = "gapless";
19 version = "4.6";
20
21 src = fetchFromGitLab {
22 domain = "gitlab.gnome.org";
23 owner = "neithern";
24 repo = "g4music";
25 rev = "v${finalAttrs.version}";
26 hash = "sha256-UzOmf0it0vazKo4PhAhaobJFZc5YKBLq7bcexatROOA=";
27 };
28
29 nativeBuildInputs = [
30 desktop-file-utils
31 gobject-introspection
32 meson
33 ninja
34 pkg-config
35 vala
36 wrapGAppsHook4
37 ];
38
39 buildInputs = [
40 gtk4
41 libadwaita
42 ]
43 ++ (with gst_all_1; [
44 gst-plugins-bad
45 gst-plugins-base
46 gst-plugins-good
47 gstreamer
48 ]);
49
50 passthru.updateScript = gitUpdater {
51 rev-prefix = "v";
52 };
53
54 meta = {
55 description = "Beautiful, fast, fluent, light weight music player written in GTK4";
56 mainProgram = "g4music";
57 homepage = "https://gitlab.gnome.org/neithern/g4music";
58 license = lib.licenses.gpl3Only;
59 maintainers = with lib.maintainers; [ aleksana ];
60 platforms = lib.platforms.linux;
61 };
62})