{ pkgs ? import <nixpkgs> {}, ... }:
pkgs.rustPlatform.buildRustPackage rec {
name = "ted";
src = ./..;
cargoSha256 = "0pyq5r1fqmkcacgczywn3ppg9d6liqva0xb4imq9j0acdabm0v5d";
buildInputs = (import ./shell.nix { inherit pkgs; }).propagatedBuildInputs;
buildPhase = ''
runHook preBuild
cargo build --release --frozen --all
runHook postBuild
'';
meta = with pkgs.stdenv.lib; {
homepage = https://nest.pijul.com/dermetfan/ted;
license = licenses.asl20;
maintainers = [ "dermetfan <serverkorken@gmail.com>" ];
platforms = platforms.unix;
};
}