mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 06:55:10 +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
845 B
Nix
36 lines
845 B
Nix
{ lib, fetchFromGitHub, rustPlatform, pkg-config }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "itm-tools";
|
|
version = "unstable-2019-11-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "japaric";
|
|
repo = pname;
|
|
rev = "e94155e44019d893ac8e6dab51cc282d344ab700";
|
|
sha256 = "19xkjym0i7y52cfhvis49c59nzvgw4906cd8bkz8ka38mbgfqgiy";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"itm-0.4.0" = "sha256-T61f1WvxEMhI5bzp8FuMYWiG1YOPJvWuBJfK/gjuNKI=";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
postPatch = ''
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Tools for analyzing ITM traces";
|
|
homepage = "https://github.com/japaric/itm-tools";
|
|
license = with licenses; [ asl20 mit ];
|
|
maintainers = with maintainers; [ hh sb0 ];
|
|
};
|
|
}
|