amberol: 0.10.3 -> 2024.1 (#344195)

This commit is contained in:
Peder Bergebakken Sundt 2024-09-25 10:37:12 +02:00 committed by GitHub
commit 9d274bbed8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 83 additions and 81 deletions

View File

@ -1,79 +0,0 @@
{ lib
, stdenv
, fetchFromGitLab
, rustPlatform
, cargo
, desktop-file-utils
, appstream-glib
, meson
, ninja
, pkg-config
, reuse
, rustc
, m4
, wrapGAppsHook4
, glib
, gtk4
, gst_all_1
, libadwaita
, dbus
}:
stdenv.mkDerivation rec {
pname = "amberol";
version = "0.10.3";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = pname;
rev = version;
hash = "sha256-nAoUO0bGToNGD2W8qJmTegrETOJDdM04hI1jjiYkZXI=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-4ZoliqQ665KPDFl+1eBCE+1fZgr+FA7vesPstoRs0RU=";
};
postPatch = ''
patchShebangs build-aux
'';
nativeBuildInputs = [
appstream-glib
desktop-file-utils
meson
ninja
pkg-config
reuse
m4
wrapGAppsHook4
rustPlatform.cargoSetupHook
cargo
rustc
];
buildInputs = [
glib
gtk4
libadwaita
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-libav
dbus
];
meta = with lib; {
homepage = "https://gitlab.gnome.org/World/amberol";
description = "Small and simple sound and music player";
maintainers = with maintainers; [ linsui ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
mainProgram = "amberol";
};
}

View File

@ -0,0 +1,83 @@
{
lib,
stdenv,
fetchFromGitLab,
rustPlatform,
cargo,
desktop-file-utils,
appstream-glib,
meson,
ninja,
pkg-config,
reuse,
rustc,
m4,
wrapGAppsHook4,
glib,
gtk4,
gst_all_1,
libadwaita,
dbus,
}:
stdenv.mkDerivation rec {
pname = "amberol";
version = "2024.1";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "amberol";
rev = version;
hash = "sha256-WuyvTgh9Qc5WcgEssxkytwQpSACd82l5WKeMD0NFOp8=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "amberol-${version}";
hash = "sha256-C1ENyNUpgwGlZus/zIWD1mUrmWT9L0fH/1T4QaIxGJw=";
};
postPatch = ''
patchShebangs build-aux
'';
nativeBuildInputs = [
appstream-glib
cargo
desktop-file-utils
m4
meson
ninja
pkg-config
reuse
rustc
rustPlatform.cargoSetupHook
wrapGAppsHook4
];
buildInputs =
[
dbus
glib
gtk4
libadwaita
]
++ (with gst_all_1; [
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
gst-libav
]);
meta = {
homepage = "https://gitlab.gnome.org/World/amberol";
description = "Small and simple sound and music player";
maintainers = with lib.maintainers; [ linsui ];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
mainProgram = "amberol";
};
}

View File

@ -2995,8 +2995,6 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
amberol = callPackage ../applications/audio/amberol { };
inherit (callPackages ../development/tools/ammonite {})
ammonite_2_12
ammonite_2_13;