nixpkgs/pkgs/development/tools/reindeer/default.nix
Nick Gerace faf9b69f8d reindeer: init at unstable-2023-05-18
Signed-off-by: Nick Gerace <nickagerace@gmail.com>
2023-05-18 18:34:31 -04:00

49 lines
1 KiB
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, libiconv
, darwin
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
pname = "reindeer";
version = "unstable-2023-05-18";
src = fetchFromGitHub {
owner = "facebookincubator";
repo = pname;
rev = "2d6d37dcddaa840b6cd99951176c972f4c3afddd";
sha256 = "sha256-31Kf6cVqAVFprTHEJp06E0p0y5YwdowhmPti8JBJw3g=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
nativeBuildInputs = [ pkg-config ];
buildInputs =
[ openssl ] ++ lib.optionals stdenv.isDarwin [
libiconv
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.CoreServices
];
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "Reindeer is a tool which takes Rust Cargo dependencies and generates Buck build rules";
homepage = "https://github.com/facebookincubator/reindeer";
license = with licenses; [ mit ];
maintainers = with maintainers; [ nickgerace ];
};
}