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.
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "bootspec";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DeterminateSystems";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-5IGSMHeL0eKfl7teDejAckYQjc8aeLwfwIQSzQ8YaAg=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/DeterminateSystems/bootspec/pull/127
|
|
# Fixes the synthesize tool for aarch64-linux
|
|
(fetchpatch {
|
|
name = "aarch64-support.patch";
|
|
url = "https://github.com/DeterminateSystems/bootspec/commit/1d0e925f360f0199f13422fb7541225fd162fd4f.patch";
|
|
sha256 = "sha256-wU/jWnOqVBrU2swANdXbQfzRpNd/JIS4cxSyCvixZM0=";
|
|
})
|
|
|
|
];
|
|
|
|
cargoHash = "sha256-eGSKVHjPnHK7WyGkO5LIjocNGHawahYQR3H5Lgk1C9s=";
|
|
|
|
meta = with lib; {
|
|
description = "Implementation of RFC-0125's datatype and synthesis tooling";
|
|
homepage = "https://github.com/DeterminateSystems/bootspec";
|
|
license = licenses.mit;
|
|
maintainers = teams.determinatesystems.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|