mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 21:13:40 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchzip
|
|
, gnome
|
|
, meson
|
|
, pkg-config
|
|
, gobject-introspection
|
|
, ninja
|
|
, glib
|
|
, librest_1_0
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libgovirt";
|
|
version = "0.3.9";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchzip {
|
|
url = "mirror://gnome/sources/libgovirt/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-6RDuJTyaVYlO4Kq+niQyepom6xj1lqdBbyWL/VnZUdk=";
|
|
};
|
|
|
|
patches = [
|
|
# https://gitlab.gnome.org/GNOME/libgovirt/-/issues/9
|
|
./auto-disable-incompatible-compiler-warnings.patch
|
|
];
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang (lib.concatStringsSep " " [
|
|
"-Wno-typedef-redefinition"
|
|
"-Wno-missing-field-initializers"
|
|
"-Wno-cast-align"
|
|
]);
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
pkg-config
|
|
gobject-introspection
|
|
ninja
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glib
|
|
librest_1_0
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "none";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gitlab.gnome.org/GNOME/libgovirt";
|
|
description = "GObject wrapper for the oVirt REST API";
|
|
maintainers = with maintainers; [ amarshall atemu ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
license = licenses.lgpl21Plus;
|
|
};
|
|
}
|