mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
d94d3b39b9
I believe we discussed this and believed this wasn't necessary, but without it the build breaks w/musl so re-add it.
79 lines
2.4 KiB
Nix
79 lines
2.4 KiB
Nix
{ stdenv, fetchFromGitHub, substituteAll, libtool, pkgconfig, intltool, gnused
|
|
, gnome3, gtk-doc, acl, systemd, glib, libatasmart, polkit, coreutils, bash
|
|
, expat, libxslt, docbook_xsl, utillinux, mdadm, libgudev, libblockdev, parted
|
|
, gobjectIntrospection, docbook_xml_dtd_412, docbook_xml_dtd_43
|
|
, libxfs, f2fs-tools, dosfstools, e2fsprogs, btrfs-progs, exfat, nilfs-utils, udftools, ntfs3g
|
|
}:
|
|
|
|
let
|
|
version = "2.7.6";
|
|
in stdenv.mkDerivation rec {
|
|
name = "udisks-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "storaged-project";
|
|
repo = "udisks";
|
|
rev = name;
|
|
sha256 = "16kf104vv2xbk8cdgaqygszcl69d7lz9gf3vmi7ggywn7nfbp2ks";
|
|
};
|
|
|
|
outputs = [ "out" "man" "dev" "devdoc" ];
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./fix-paths.patch;
|
|
bash = "${bash}/bin/bash";
|
|
blkid = "${utillinux}/bin/blkid";
|
|
false = "${coreutils}/bin/false";
|
|
mdadm = "${mdadm}/bin/mdadm";
|
|
sed = "${gnused}/bin/sed";
|
|
sh = "${bash}/bin/sh";
|
|
sleep = "${coreutils}/bin/sleep";
|
|
true = "${coreutils}/bin/true";
|
|
})
|
|
(substituteAll {
|
|
src = ./force-path.patch;
|
|
path = stdenv.lib.makeBinPath [ btrfs-progs coreutils dosfstools e2fsprogs exfat f2fs-tools nilfs-utils libxfs ntfs3g parted utillinux ];
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig gnome3.gnome-common libtool intltool gobjectIntrospection
|
|
gtk-doc libxslt docbook_xml_dtd_412 docbook_xml_dtd_43 docbook_xsl
|
|
];
|
|
|
|
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
|
substituteInPlace udisks/udisksclient.c \
|
|
--replace 'defined( __GNUC_PREREQ)' 1 \
|
|
--replace '__GNUC_PREREQ(4,6)' 1
|
|
'';
|
|
|
|
buildInputs = [
|
|
expat libgudev libblockdev acl systemd glib libatasmart polkit
|
|
];
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
configureFlags = [
|
|
"--enable-gtk-doc"
|
|
"--localstatedir=/var"
|
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
|
"--with-udevdir=$(out)/lib/udev"
|
|
];
|
|
|
|
makeFlags = [
|
|
"INTROSPECTION_GIRDIR=$(dev)/share/gir-1.0"
|
|
"INTROSPECTION_TYPELIBDIR=$(out)/lib/girepository-1.0"
|
|
];
|
|
|
|
doCheck = false; # fails
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A daemon, tools and libraries to access and manipulate disks, storage devices and technologies";
|
|
homepage = https://www.freedesktop.org/wiki/Software/udisks/;
|
|
license = licenses.gpl2Plus; # lgpl2Plus for the library, gpl2Plus for the tools & daemon
|
|
maintainers = with maintainers; [];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|