bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
25 lines
616 B
Nix
25 lines
616 B
Nix
{ lib, rustPlatform, fetchCrate }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "toml2nix";
|
|
version = "0.1.1";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
sha256 = "sha256-YhluLS4tFMibFrDzgIvNtfjM5dAqJQvygeZocKn3+Jg=";
|
|
};
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
postPatch = ''
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool to convert TOML files to Nix expressions";
|
|
mainProgram = "toml2nix";
|
|
homepage = "https://crates.io/crates/toml2nix";
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|