mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cargo,
|
|
fetchFromGitLab,
|
|
gi-docgen,
|
|
gobject-introspection,
|
|
json-glib,
|
|
meson,
|
|
ninja,
|
|
nix-update-script,
|
|
pkg-config,
|
|
rustPlatform,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libipuz";
|
|
version = "0.5.4";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "jrb";
|
|
repo = "libipuz";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-rUFYPtedcNqba2OLPo9nSjyGxuc3Q3RNoOmZx+RUOcU=";
|
|
};
|
|
|
|
cargoRoot = "libipuz/rust";
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs)
|
|
pname
|
|
src
|
|
version
|
|
cargoRoot
|
|
;
|
|
hash = "sha256-NbK++me/tOrl0MyxvyTIK9UWyR0jU3pkJ6c5sNjuY2M=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cargo
|
|
gi-docgen
|
|
gobject-introspection
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
rustPlatform.cargoSetupHook
|
|
];
|
|
|
|
buildInputs = [
|
|
json-glib
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Library for parsing .ipuz puzzle files";
|
|
homepage = "https://gitlab.gnome.org/jrb/libipuz";
|
|
changelog = "https://gitlab.gnome.org/jrb/libipuz/-/blob/${finalAttrs.version}/NEWS.md?ref_type=tags";
|
|
license = with lib.licenses; [
|
|
lgpl21Plus
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
aleksana
|
|
l0b0
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|