mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
47 lines
1.4 KiB
Nix
47 lines
1.4 KiB
Nix
{ lib, stdenv, fetchurl, pkg-config, sg3_utils, udev, glib, dbus, dbus-glib
|
|
, polkit, parted, lvm2, libatasmart, intltool, libuuid, mdadm
|
|
, libxslt, docbook_xsl, util-linux, libgudev }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "udisks-1.0.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://hal.freedesktop.org/releases/${name}.tar.gz";
|
|
sha256 = "0wbg3jrv8limdgvcygf4dqin3y6d30y9pcmmk711vq571vmq5v7j";
|
|
};
|
|
|
|
patches = [ ./purity.patch ./no-pci-db.patch ./glibc.patch ];
|
|
|
|
preConfigure =
|
|
''
|
|
configureFlagsArray+=(--with-systemdsystemunitdir=$out/lib/systemd/system)
|
|
'';
|
|
|
|
postPatch =
|
|
''
|
|
sed -e 's,/sbin/mdadm,${mdadm}&,g' -e "s,@slashlibdir@,$out/lib,g" -i data/80-udisks.rules
|
|
|
|
substituteInPlace src/main.c --replace \
|
|
"/sbin:/bin:/usr/sbin:/usr/bin" \
|
|
"${util-linux}/bin:${mdadm}/sbin:/run/current-system/sw/bin:/run/current-system/sw/bin"
|
|
'';
|
|
|
|
buildInputs =
|
|
[ sg3_utils udev glib dbus dbus-glib polkit parted libgudev
|
|
lvm2 libatasmart intltool libuuid libxslt docbook_xsl
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
configureFlags = [ "--localstatedir=/var" "--enable-lvm2" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.freedesktop.org/wiki/Software/udisks";
|
|
description = "A daemon and command-line utility for querying and manipulating storage devices";
|
|
platforms = platforms.linux;
|
|
license = with licenses; [ gpl2 lgpl2Plus ];
|
|
broken = true;
|
|
hydraPlatforms = [];
|
|
};
|
|
}
|