mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 20:14:37 +00:00

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.
37 lines
803 B
Nix
37 lines
803 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "libelf";
|
|
version = "0.8.13-unstable-2023-01-14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "avrdudes";
|
|
repo = "libelf";
|
|
rev = "0c55bfe1d3020a20bddf6ce57c0d9d98ccb12586";
|
|
hash = "sha256-jz7Ef0Eg673IJVZvVNklY40s13LCuMVAc7FGrRI7scQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/lib
|
|
cp liblibelf.a $out/lib/libelf.a
|
|
cp -r $src/include $out/include
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "ELF object file access library (vendored by avrdudes)";
|
|
homepage = "https://github.com/avrdudes/libelf";
|
|
license = lib.licenses.lgpl2Plus;
|
|
platforms = lib.platforms.all;
|
|
maintainers = [ lib.maintainers.bjornfor ];
|
|
};
|
|
}
|