mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
43 lines
1.4 KiB
Nix
43 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
pkg-config,
|
|
fuse,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "djmount";
|
|
version = "0.71";
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/djmount/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "0kqf0cy3h4cfiy5a2sigmisx0lvvsi1n0fbyb9ll5gacmy1b8nxa";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Taken from https://github.com/pupnp/pupnp/pull/334/files
|
|
substituteInPlace libupnp/threadutil/inc/ithread.h \
|
|
--replace \
|
|
"#define ithread_mutexattr_setkind_np pthread_mutexattr_setkind_np" \
|
|
'#define ithread_mutexattr_setkind_np pthread_mutexattr_settype'
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ fuse ];
|
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
# gcc-10. Otherwise build fails as:
|
|
# ld: libupnp/upnp/.libs/libupnp.a(libupnp_la-gena_ctrlpt.o):libupnp/upnp/src/inc/upnpapi.h:163:
|
|
# multiple definition of `pVirtualDirList'; libupnp/upnp/.libs/libupnp.a(libupnp_la-upnpapi.o):libupnp/upnp/src/inc/upnpapi.h:163: first defined here
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
meta = {
|
|
homepage = "https://djmount.sourceforge.net/";
|
|
description = "UPnP AV client, mounts as a Linux filesystem the media content of compatible UPnP AV devices";
|
|
mainProgram = "djmount";
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.jagajaga ];
|
|
license = lib.licenses.gpl2Plus;
|
|
};
|
|
}
|