mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +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.
36 lines
821 B
Nix
36 lines
821 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, callPackage
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "teensy-cmake-macros";
|
|
version = "unstable-2023-04-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "newdigate";
|
|
repo = "teensy-cmake-macros";
|
|
rev = "dc401ed23e6e13a9db3cd2a65f611a4738df3b0e";
|
|
hash = "sha256-E+BOlsCJtOScr3B5GSv1WM6rFv6cFYvm/iJ893fsmXM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ cmake pkg-config ];
|
|
|
|
passthru = {
|
|
hook = callPackage ./hook.nix {
|
|
teensy-cmake-macros = finalAttrs.finalPackage;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "CMake macros for building teensy projects";
|
|
platforms = platforms.all;
|
|
homepage = "https://github.com/newdigate/teensy-cmake-macros";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.michaeldonovan ];
|
|
};
|
|
})
|