mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +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.
40 lines
1.3 KiB
Nix
40 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mlib";
|
|
version = "0.7.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "P-p-H-d";
|
|
repo = pname;
|
|
rev = "V${version}";
|
|
hash = "sha256-r8ol923tNkZ13QXWjWpMrN6rBjjjg5XoBCho4OKdyvY=";
|
|
};
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "PREFIX=$(out)" ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Library of generic and type safe containers in pure C language";
|
|
longDescription = ''
|
|
M*LIB (M star lib) is a C library enabling to define and use generic and
|
|
type safe container, aka handling generic containers in in pure C
|
|
language. The objects within the containers can be trivial or very
|
|
complex: they can have their own constructor, destructor, operators or can
|
|
be basic C type like the C type 'int'. This makes it possible to construct
|
|
fully recursive objects (container-of[...]-container-of-type-T), without
|
|
erasing type information (typically using void pointers or resorting to C
|
|
macro to access the container).
|
|
'';
|
|
homepage = "https://github.com/P-p-H-d/mlib";
|
|
changelog = "https://github.com/P-p-H-d/mlib/releases/tag/${src.rev}";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ azahi ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|