mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
Merge pull request #203367 from wegank/mpris-scrobbler-bump
mpris-scrobbler: 0.4.95 -> 0.5.0
This commit is contained in:
commit
048cadb556
@ -1,4 +1,5 @@
|
||||
{ lib, stdenv
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, nix-update-script
|
||||
, curl
|
||||
@ -15,18 +16,22 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mpris-scrobbler";
|
||||
version = "0.4.95";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mariusor";
|
||||
repo = "mpris-scrobbler";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Cqf0egS4XSDiKLdizNHPdS0Zt3jQxw9e78S7n23CuKI=";
|
||||
owner = "mariusor";
|
||||
repo = "mpris-scrobbler";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-HUEUkVL5d6FD698k8iSCJMNeSo8vGJCsExJW/E0EWpQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/signon.c \
|
||||
--replace "/usr/bin/xdg-open" "${xdg-utils}/bin/xdg-open"
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace meson.build \
|
||||
--replace "-Werror=format-truncation=0" "" \
|
||||
--replace "-Wno-stringop-overflow" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -44,6 +49,19 @@ stdenv.mkDerivation rec {
|
||||
libevent
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dversion=${version}"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
|
||||
"-Wno-sometimes-uninitialized"
|
||||
"-Wno-tautological-pointer-compare"
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
"-Wno-array-bounds"
|
||||
"-Wno-free-nonheap-object"
|
||||
"-Wno-stringop-truncation"
|
||||
]);
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
@ -56,6 +74,5 @@ stdenv.mkDerivation rec {
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ emantor ];
|
||||
platforms = platforms.unix;
|
||||
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/mpris-scrobbler.x86_64-darwin
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user